From 68c14355afb6cc64c8bcca769f2984282a259c3a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 3 Apr 2008 13:17:33 +0200 Subject: [PATCH] [events] Stop handling LeaveNotify events Signed-off-by: Julien Danjou --- awesome.c | 1 - event.c | 14 -------------- event.h | 1 - 3 files changed, 16 deletions(-) diff --git a/awesome.c b/awesome.c index ff10cb1ca..7bed1e7ac 100644 --- a/awesome.c +++ b/awesome.c @@ -310,7 +310,6 @@ main(int argc, char *argv[]) handler[ConfigureNotify] = event_handle_configurenotify; handler[DestroyNotify] = event_handle_destroynotify; handler[EnterNotify] = event_handle_enternotify; - handler[LeaveNotify] = event_handle_leavenotify; handler[Expose] = event_handle_expose; handler[KeyPress] = event_handle_keypress; handler[MappingNotify] = event_handle_mappingnotify; diff --git a/event.c b/event.c index 72ebb7620..94df11a48 100644 --- a/event.c +++ b/event.c @@ -346,20 +346,6 @@ event_handle_keypress(XEvent *e) k->func(screen, k->arg); } -/** Handle XCrossing events on leave - * \param e XEvent - */ -void -event_handle_leavenotify(XEvent * e) -{ - XCrossingEvent *ev = &e->xcrossing; - int screen; - - for(screen = 0; screen < ScreenCount(e->xany.display); screen++) - if((ev->window == RootWindow(e->xany.display, screen)) && !ev->same_screen) - client_focus(NULL, screen, True); -} - /** Handle XMapping events * \param e XEvent */ diff --git a/event.h b/event.h index 53a368492..bdcf7e48f 100644 --- a/event.h +++ b/event.h @@ -33,7 +33,6 @@ void event_handle_destroynotify(XEvent *); void event_handle_enternotify(XEvent *); void event_handle_expose(XEvent *); void event_handle_keypress(XEvent *); -void event_handle_leavenotify(XEvent *); void event_handle_mappingnotify(XEvent *); void event_handle_maprequest(XEvent *); void event_handle_propertynotify(XEvent *);