|
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 |
|
| 89 |
|
|
|
| 90 |
/*! |
90 |
/*! |
| 91 |
Create list of clients on specified desktop, starting with client c |
91 |
Create list of clients on specified desktop, starting with client c |
| 92 |
*/ |
92 |
*/ |
| 93 |
void TabBox::createClientList(ClientList &list, int desktop /*-1 = all*/, Client *c, bool chain) |
93 |
void TabBox::createClientList(ClientList &list, int desktop /*-1 = all*/, Client *c, bool chain) |
| 94 |
{ |
94 |
{ |
| 95 |
ClientList::size_type idx = 0; |
95 |
ClientList::size_type idx = 0; |
| 96 |
|
96 |
TQString startclass = NULL; |
| 97 |
list.clear(); |
97 |
list.clear(); |
| 98 |
|
98 |
|
| 99 |
Client* start = c; |
99 |
Client* start = c; |
| 100 |
|
100 |
|
|
|
101 |
if( start != NULL ) |
| 102 |
startclass = start->resourceClass(); |
| 103 |
|
| 101 |
if ( chain ) |
104 |
if ( chain ) |
| 102 |
c = workspace()->nextFocusChainClient(c); |
105 |
c = workspace()->nextFocusChainClient(c); |
| 103 |
else |
106 |
else |
|
Lines 121-126
Link Here
|
| 121 |
// nothing |
124 |
// nothing |
| 122 |
} |
125 |
} |
| 123 |
} |
126 |
} |
|
|
127 |
if(appsOnly && (!TQString::compare( startclass, c->resourceClass()) == 0)) |
| 128 |
{ |
| 129 |
add = NULL; |
| 130 |
} |
| 124 |
|
131 |
|
| 125 |
if( options->separateScreenFocus && options->xineramaEnabled ) |
132 |
if( options->separateScreenFocus && options->xineramaEnabled ) |
| 126 |
{ |
133 |
{ |
|
Lines 645-650
Link Here
|
| 645 |
XEvent otherEvent; |
652 |
XEvent otherEvent; |
| 646 |
while (XCheckTypedEvent (qt_xdisplay(), EnterNotify, &otherEvent ) ) |
653 |
while (XCheckTypedEvent (qt_xdisplay(), EnterNotify, &otherEvent ) ) |
| 647 |
; |
654 |
; |
|
|
655 |
appsOnly = FALSE; |
| 648 |
} |
656 |
} |
| 649 |
|
657 |
|
| 650 |
|
658 |
|
|
Lines 856-862
Link Here
|
| 856 |
} |
864 |
} |
| 857 |
else |
865 |
else |
| 858 |
{ |
866 |
{ |
| 859 |
if ( areModKeysDepressed( cutWalkThroughWindows ) ) |
867 |
if ( areModKeysDepressed( cutWalkThroughWindows ) ) |
| 860 |
{ |
868 |
{ |
| 861 |
if ( startKDEWalkThroughWindows() ) |
869 |
if ( startKDEWalkThroughWindows() ) |
| 862 |
KDEWalkThroughWindows( true ); |
870 |
KDEWalkThroughWindows( true ); |
|
Lines 893-898
Link Here
|
| 893 |
} |
901 |
} |
| 894 |
} |
902 |
} |
| 895 |
|
903 |
|
|
|
904 |
void Workspace::slotWalkThroughApps() { |
| 905 |
kdDebug(0) << "slot walk" << endl; |
| 906 |
tab_box->appsOnly = TRUE; |
| 907 |
slotWalkThroughWindows(); |
| 908 |
} |
| 909 |
|
| 910 |
void Workspace::slotWalkBackThroughApps() { |
| 911 |
tab_box->appsOnly = TRUE; |
| 912 |
slotWalkBackThroughWindows(); |
| 913 |
} |
| 896 |
void Workspace::slotWalkThroughDesktops() |
914 |
void Workspace::slotWalkThroughDesktops() |
| 897 |
{ |
915 |
{ |
| 898 |
if ( root != qt_xrootwin() ) |
916 |
if ( root != qt_xrootwin() ) |
|
Lines 1112-1129
Link Here
|
| 1112 |
{ |
1130 |
{ |
| 1113 |
bool forward = false; |
1131 |
bool forward = false; |
| 1114 |
bool backward = false; |
1132 |
bool backward = false; |
|
|
1133 |
bool forwardapps = false; |
| 1134 |
bool backwardapps = false; |
| 1115 |
|
1135 |
|
| 1116 |
if (tab_grab) |
1136 |
if (tab_grab) |
| 1117 |
{ |
1137 |
{ |
| 1118 |
forward = cutWalkThroughWindows.contains( keyX ); |
1138 |
forward = cutWalkThroughWindows.contains( keyX ); |
| 1119 |
backward = cutWalkThroughWindowsReverse.contains( keyX ); |
1139 |
backward = cutWalkThroughWindowsReverse.contains( keyX ); |
| 1120 |
if (forward || backward) |
1140 |
|
|
|
1141 |
forwardapps = cutWalkThroughApps.contains( keyX ); |
| 1142 |
backwardapps = cutWalkThroughAppsReverse.contains( keyX ); |
| 1143 |
|
| 1144 |
if ( (forward || backward) && (!tab_box->appsOnly) ) |
| 1121 |
{ |
1145 |
{ |
| 1122 |
kdDebug(125) << "== " << cutWalkThroughWindows.toStringInternal() |
1146 |
kdDebug(125) << "== " << cutWalkThroughWindows.toStringInternal() |
| 1123 |
<< " or " << cutWalkThroughWindowsReverse.toStringInternal() << endl; |
1147 |
<< " or " << cutWalkThroughWindowsReverse.keyCodeQt() << endl; |
| 1124 |
KDEWalkThroughWindows( forward ); |
1148 |
KDEWalkThroughWindows( forward ); |
| 1125 |
} |
1149 |
} |
| 1126 |
} |
1150 |
|
|
|
1151 |
if ( (forwardapps || backwardapps) && (tab_box->appsOnly) ) |
| 1152 |
{ |
| 1153 |
kdDebug(125) << "== " << cutWalkThroughApps.toStringInternal() |
| 1154 |
<< " or " << cutWalkThroughAppsReverse.toStringInternal() << endl; |
| 1155 |
KDEWalkThroughWindows( forwardapps ); |
| 1156 |
} |
| 1157 |
} |
| 1158 |
|
| 1127 |
else if (control_grab) |
1159 |
else if (control_grab) |
| 1128 |
{ |
1160 |
{ |
| 1129 |
forward = cutWalkThroughDesktops.contains( keyX ) || |
1161 |
forward = cutWalkThroughDesktops.contains( keyX ) || |