From 7073133e66314653032faa289fd2cb5ba5ec3088 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 24 Jan 2008 23:43:46 +0100 Subject: [PATCH] remove drop event infrastructure --- awesome.c | 13 +------------ client.c | 1 - structs.h | 2 -- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/awesome.c b/awesome.c index 4a6db01c0..6edd96958 100644 --- a/awesome.c +++ b/awesome.c @@ -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); } diff --git a/client.c b/client.c index 908cc5f13..8759b8d69 100644 --- a/client.c +++ b/client.c @@ -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 diff --git a/structs.h b/structs.h index 9abf08121..03eb6ee37 100644 --- a/structs.h +++ b/structs.h @@ -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