remove drop event infrastructure

This commit is contained in:
Julien Danjou 2008-01-24 23:43:46 +01:00
parent 4734a8af3d
commit 7073133e66
3 changed files with 1 additions and 15 deletions

View File

@ -415,18 +415,7 @@ main(int argc, char *argv[])
{
XNextEvent(dpy, &ev);
if(handler[ev.type])
handler[ev.type](&ev); /* call handler */
/* 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 */
handler[ev.type](&ev);
XSync(dpy, False);
}

View File

@ -216,7 +216,6 @@ focus(Client *c, Bool selscreen, int screen)
RevertToPointerRoot, CurrentTime);
ewmh_update_net_active_window(phys_screen);
globalconf.drop_events |= EnterWindowMask;
}
/** Manage a new client

View File

@ -330,8 +330,6 @@ struct AwesomeConf
tag_client_node_t *tclink;
/** Command line passed to awesome */
char *argv;
/** EventMask to drop before each XEvent treatement */
long drop_events;
};
#endif