remove drop event infrastructure
This commit is contained in:
parent
4734a8af3d
commit
7073133e66
13
awesome.c
13
awesome.c
|
@ -415,18 +415,7 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
XNextEvent(dpy, &ev);
|
XNextEvent(dpy, &ev);
|
||||||
if(handler[ev.type])
|
if(handler[ev.type])
|
||||||
handler[ev.type](&ev); /* call handler */
|
handler[ev.type](&ev);
|
||||||
|
|
||||||
/* drop events requested to */
|
|
||||||
if(globalconf.drop_events)
|
|
||||||
{
|
|
||||||
/* need to resync */
|
|
||||||
XSync(dpy, False);
|
|
||||||
while(XCheckMaskEvent(dpy, globalconf.drop_events, &ev));
|
|
||||||
globalconf.drop_events = NoEventMask;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* need to resync */
|
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
client.c
1
client.c
|
@ -216,7 +216,6 @@ focus(Client *c, Bool selscreen, int screen)
|
||||||
RevertToPointerRoot, CurrentTime);
|
RevertToPointerRoot, CurrentTime);
|
||||||
|
|
||||||
ewmh_update_net_active_window(phys_screen);
|
ewmh_update_net_active_window(phys_screen);
|
||||||
globalconf.drop_events |= EnterWindowMask;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Manage a new client
|
/** Manage a new client
|
||||||
|
|
|
@ -330,8 +330,6 @@ struct AwesomeConf
|
||||||
tag_client_node_t *tclink;
|
tag_client_node_t *tclink;
|
||||||
/** Command line passed to awesome */
|
/** Command line passed to awesome */
|
||||||
char *argv;
|
char *argv;
|
||||||
/** EventMask to drop before each XEvent treatement */
|
|
||||||
long drop_events;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue