|
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-92
Link Here
|
| 86 |
m = mode; |
87 |
m = mode; |
| 87 |
} |
88 |
} |
| 88 |
|
89 |
|
|
|
90 |
/*! |
| 91 |
Sets the appsOnly variable, TRUE means createClientList will only return windows matching the current WM_CLASS |
| 89 |
|
92 |
|
|
|
93 |
*/ |
| 94 |
void TabBox::setAppsOnly( bool a ) { |
| 95 |
appsOnly = a; |
| 96 |
} |
| 90 |
/*! |
97 |
/*! |
| 91 |
Create list of clients on specified desktop, starting with client c |
98 |
Create list of clients on specified desktop, starting with client c |
| 92 |
*/ |
99 |
*/ |
|
Lines 95-110
Link Here
|
| 95 |
ClientList::size_type idx = 0; |
102 |
ClientList::size_type idx = 0; |
| 96 |
|
103 |
|
| 97 |
list.clear(); |
104 |
list.clear(); |
|
|
105 |
|
| 98 |
|
106 |
|
| 99 |
Client* start = c; |
107 |
Client* start = c; |
| 100 |
|
108 |
|
|
|
109 |
TQString startclass = start->readClass(); |
| 101 |
if ( chain ) |
110 |
if ( chain ) |
| 102 |
c = workspace()->nextFocusChainClient(c); |
111 |
c = workspace()->nextFocusChainClient(c); |
| 103 |
else |
112 |
else |
| 104 |
c = workspace()->stackingOrder().first(); |
113 |
c = workspace()->stackingOrder().first(); |
| 105 |
|
114 |
|
| 106 |
Client* stop = c; |
115 |
Client* stop = c; |
| 107 |
|
116 |
|
| 108 |
while ( c ) |
117 |
while ( c ) |
| 109 |
{ |
118 |
{ |
| 110 |
Client* add = NULL; |
119 |
Client* add = NULL; |
|
Lines 121-127
Link Here
|
| 121 |
// nothing |
130 |
// nothing |
| 122 |
} |
131 |
} |
| 123 |
} |
132 |
} |
| 124 |
|
133 |
if(appsOnly && (!TQString::compare( startclass, c->readClass()) == 0)) |
|
|
134 |
{ |
| 135 |
add = NULL; |
| 136 |
} |
| 125 |
if( options->separateScreenFocus && options->xineramaEnabled ) |
137 |
if( options->separateScreenFocus && options->xineramaEnabled ) |
| 126 |
{ |
138 |
{ |
| 127 |
if( c->screen() != workspace()->activeScreen()) |
139 |
if( c->screen() != workspace()->activeScreen()) |
|
Lines 645-653
Link Here
|
| 645 |
XEvent otherEvent; |
657 |
XEvent otherEvent; |
| 646 |
while (XCheckTypedEvent (qt_xdisplay(), EnterNotify, &otherEvent ) ) |
658 |
while (XCheckTypedEvent (qt_xdisplay(), EnterNotify, &otherEvent ) ) |
| 647 |
; |
659 |
; |
|
|
660 |
setAppsOnly( false ); |
| 648 |
} |
661 |
} |
| 649 |
|
662 |
|
| 650 |
|
|
|
| 651 |
void TabBox::reconfigure() |
663 |
void TabBox::reconfigure() |
| 652 |
{ |
664 |
{ |
| 653 |
KConfig * c(KGlobal::config()); |
665 |
KConfig * c(KGlobal::config()); |
|
Lines 893-898
Link Here
|
| 893 |
} |
905 |
} |
| 894 |
} |
906 |
} |
| 895 |
|
907 |
|
|
|
908 |
void Workspace::slotWalkThroughApps() { |
| 909 |
kdDebug(0) << "slot walk" << endl; |
| 910 |
tab_box->setAppsOnly(true); |
| 911 |
slotWalkThroughWindows(); |
| 912 |
} |
| 913 |
|
| 914 |
|
| 915 |
void Workspace::slotWalkBackThroughApps() { |
| 916 |
tab_box->setAppsOnly(true); |
| 917 |
slotWalkBackThroughWindows(); |
| 918 |
} |
| 896 |
void Workspace::slotWalkThroughDesktops() |
919 |
void Workspace::slotWalkThroughDesktops() |
| 897 |
{ |
920 |
{ |
| 898 |
if ( root != qt_xrootwin() ) |
921 |
if ( root != qt_xrootwin() ) |
|
Lines 1342-1345
Link Here
|
| 1342 |
|
1365 |
|
| 1343 |
} // namespace |
1366 |
} // namespace |
| 1344 |
|
1367 |
|
| 1345 |
#include "tabbox.moc" |
1368 |
#include "tabbox.moc" |