[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:
Adrian Chadd
2022-03-28 20:44:24 -07:00
parent 84caa252d1
commit d00be9ffa8
8 changed files with 66 additions and 47 deletions

2
icon.c
View File

@@ -398,7 +398,7 @@ Icon *createappicon(struct module *m, Window p, char *name,
scr=c->scr;
} else
if(XFindContext(dpy, p, screen_context, (XPointer*)&scr))
scr=front;
scr = get_front_scr();
if(p==scr->root) p=scr->back;
i->scr=scr;