[events] Stop handling LeaveNotify events

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-03 13:17:33 +02:00
parent 219d78b52c
commit 68c14355af
3 changed files with 0 additions and 16 deletions

View File

@ -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;

14
event.c
View File

@ -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
*/

View File

@ -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 *);