[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 committed 2022-04-03 08:20:39 -07:00
1 parent 84caa252d1
commit d00be9ffa8
8 files changed
+66 -47

No files matched your search

+1 -1
View File
@@ -805,7 +805,7 @@ void menuaction(struct Item *i, struct Item *si)
if(item==0) {
openscreen("New Screen", DefaultRootWindow(dpy));
realizescreens();
scr=front->upfront;
scr = get_front_scr()->upfront;
screentoback();
}
if(item==1) {