|
Lines 47-52
Link Here
|
| 47 |
setLineWidth(2); |
47 |
setLineWidth(2); |
| 48 |
setMargin(2); |
48 |
setMargin(2); |
| 49 |
|
49 |
|
|
|
50 |
appsOnly = false; |
| 50 |
showMiniIcon = false; |
51 |
showMiniIcon = false; |
| 51 |
|
52 |
|
| 52 |
no_tasks = i18n("*** No Windows ***"); |
53 |
no_tasks = i18n("*** No Windows ***"); |
|
Lines 86-103
Link Here
|
| 86 |
m = mode; |
87 |
m = mode; |
| 87 |
} |
88 |
} |
| 88 |
|
89 |
|
|
|
90 |
/*! |
| 91 |
Sets AppsOnly, which when true, createClientList will return only applications within the same class |
| 89 |
|
92 |
|
|
|
93 |
*/ |
| 94 |
void TabBox::setAppsOnly( bool a ) |
| 95 |
{ |
| 96 |
appsOnly = a; |
| 97 |
} |
| 98 |
|
| 90 |
/*! |
99 |
/*! |
| 91 |
Create list of clients on specified desktop, starting with client c |
100 |
Create list of clients on specified desktop, starting with client c |
| 92 |
*/ |
101 |
*/ |
| 93 |
void TabBox::createClientList(ClientList &list, int desktop /*-1 = all*/, Client *c, bool chain) |
102 |
void TabBox::createClientList(ClientList &list, int desktop /*-1 = all*/, Client *c, bool chain) |
| 94 |
{ |
103 |
{ |
| 95 |
ClientList::size_type idx = 0; |
104 |
ClientList::size_type idx = 0; |
| 96 |
|
105 |
TQString startClass; |
| 97 |
list.clear(); |
106 |
list.clear(); |
| 98 |
|
107 |
|
| 99 |
Client* start = c; |
108 |
Client* start = c; |
| 100 |
|
109 |
|
|
|
110 |
if( start ) |
| 111 |
startClass = start->resourceClass(); |
| 112 |
|
| 101 |
if ( chain ) |
113 |
if ( chain ) |
| 102 |
c = workspace()->nextFocusChainClient(c); |
114 |
c = workspace()->nextFocusChainClient(c); |
| 103 |
else |
115 |
else |
|
Lines 121-126
Link Here
|
| 121 |
// nothing |
133 |
// nothing |
| 122 |
} |
134 |
} |
| 123 |
} |
135 |
} |
|
|
136 |
if(appsOnly && (TQString::compare( startClass, c->resourceClass()) != 0)) |
| 137 |
{ |
| 138 |
add = NULL; |
| 139 |
} |
| 124 |
|
140 |
|
| 125 |
if( options->separateScreenFocus && options->xineramaEnabled ) |
141 |
if( options->separateScreenFocus && options->xineramaEnabled ) |
| 126 |
{ |
142 |
{ |
|
Lines 645-650
Link Here
|
| 645 |
XEvent otherEvent; |
661 |
XEvent otherEvent; |
| 646 |
while (XCheckTypedEvent (qt_xdisplay(), EnterNotify, &otherEvent ) ) |
662 |
while (XCheckTypedEvent (qt_xdisplay(), EnterNotify, &otherEvent ) ) |
| 647 |
; |
663 |
; |
|
|
664 |
appsOnly = false; |
| 648 |
} |
665 |
} |
| 649 |
|
666 |
|
| 650 |
|
667 |
|
|
Lines 893-898
Link Here
|
| 893 |
} |
910 |
} |
| 894 |
} |
911 |
} |
| 895 |
|
912 |
|
|
|
913 |
void Workspace::slotWalkThroughApps() |
| 914 |
{ |
| 915 |
tab_box->setAppsOnly(true); |
| 916 |
slotWalkThroughWindows(); |
| 917 |
} |
| 918 |
|
| 919 |
void Workspace::slotWalkBackThroughApps() |
| 920 |
{ |
| 921 |
tab_box->setAppsOnly(true); |
| 922 |
slotWalkBackThroughWindows(); |
| 923 |
} |
| 924 |
|
| 896 |
void Workspace::slotWalkThroughDesktops() |
925 |
void Workspace::slotWalkThroughDesktops() |
| 897 |
{ |
926 |
{ |
| 898 |
if ( root != qt_xrootwin() ) |
927 |
if ( root != qt_xrootwin() ) |
|
Lines 1112-1129
Link Here
|
| 1112 |
{ |
1141 |
{ |
| 1113 |
bool forward = false; |
1142 |
bool forward = false; |
| 1114 |
bool backward = false; |
1143 |
bool backward = false; |
|
|
1144 |
bool forwardapps = false; |
| 1145 |
bool backwardapps = false; |
| 1115 |
|
1146 |
|
| 1116 |
if (tab_grab) |
1147 |
if (tab_grab) |
| 1117 |
{ |
1148 |
{ |
| 1118 |
forward = cutWalkThroughWindows.contains( keyX ); |
1149 |
forward = cutWalkThroughWindows.contains( keyX ); |
| 1119 |
backward = cutWalkThroughWindowsReverse.contains( keyX ); |
1150 |
backward = cutWalkThroughWindowsReverse.contains( keyX ); |
| 1120 |
if (forward || backward) |
1151 |
|
|
|
1152 |
forwardapps = cutWalkThroughApps.contains( keyX ); |
| 1153 |
backwardapps = cutWalkThroughAppsReverse.contains( keyX ); |
| 1154 |
|
| 1155 |
if ( (forward || backward) && (!tab_box->isAppsOnly()) ) |
| 1121 |
{ |
1156 |
{ |
| 1122 |
kdDebug(125) << "== " << cutWalkThroughWindows.toStringInternal() |
1157 |
kdDebug(125) << "== " << cutWalkThroughWindows.toStringInternal() |
| 1123 |
<< " or " << cutWalkThroughWindowsReverse.toStringInternal() << endl; |
1158 |
<< " or " << cutWalkThroughWindowsReverse.toStringInternal() << endl; |
|
|
1159 |
|
| 1124 |
KDEWalkThroughWindows( forward ); |
1160 |
KDEWalkThroughWindows( forward ); |
| 1125 |
} |
1161 |
} |
| 1126 |
} |
1162 |
|
|
|
1163 |
if ( (forwardapps || backwardapps) && (tab_box->isAppsOnly()) ) |
| 1164 |
{ |
| 1165 |
kdDebug(125) << "== " << cutWalkThroughWindows.toStringInternal() |
| 1166 |
<< " or " << cutWalkThroughWindowsReverse.toStringInternal() << endl; |
| 1167 |
KDEWalkThroughWindows( forwardapps ); |
| 1168 |
} |
| 1169 |
} |
| 1170 |
|
| 1127 |
else if (control_grab) |
1171 |
else if (control_grab) |
| 1128 |
{ |
1172 |
{ |
| 1129 |
forward = cutWalkThroughDesktops.contains( keyX ) || |
1173 |
forward = cutWalkThroughDesktops.contains( keyX ) || |