mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
localize menu routines
Keep state loal into drag_menu() in menu.c, rather than in global variables around menu.c and main.c
This commit is contained in:
3
client.c
3
client.c
@@ -19,7 +19,6 @@ extern struct Library *XLibBase;
|
||||
extern Display *dpy;
|
||||
extern XContext client_context, screen_context;
|
||||
extern Client *activeclient;
|
||||
extern Scrn *menuactive;
|
||||
extern void setfocus(Window);
|
||||
|
||||
Client *clients=NULL;
|
||||
@@ -322,8 +321,6 @@ void rmclient(Client *c)
|
||||
closescreen();
|
||||
scr = c->scr;
|
||||
if(c->active) {
|
||||
if(!menuactive)
|
||||
setfocus(None);
|
||||
c->active=False;
|
||||
activeclient = NULL;
|
||||
XInstallColormap(dpy, scr->cmap);
|
||||
|
||||
Reference in New Issue
Block a user