mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
[amiwm] remove the global 'front' variable
This is a pretty straight forward change to remove the global front variable and instead use a couple of accessor functions. This hopefully will make it easier to keep track and debug when the front screen changes.
This commit is contained in:
4
client.c
4
client.c
@@ -331,7 +331,7 @@ void flushclients()
|
||||
Scrn *scr2;
|
||||
#endif
|
||||
|
||||
if((scr = front)) do {
|
||||
if((scr = get_front_scr())) do {
|
||||
scr = scr->upfront;
|
||||
XQueryTree(dpy, scr->back, &dw1, &dw2, &wins, &nwins);
|
||||
for(i=0; i<nwins; i++)
|
||||
@@ -367,7 +367,7 @@ void flushclients()
|
||||
}
|
||||
*/
|
||||
XFree((void *) wins);
|
||||
} while(scr!=front);
|
||||
} while( scr!= get_front_scr());
|
||||
while((c=clients)) {
|
||||
if(c->parent != c->scr->root) {
|
||||
int x,y;
|
||||
|
||||
Reference in New Issue
Block a user