[events] Stop handling LeaveNotify events
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
219d78b52c
commit
68c14355af
|
@ -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
14
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
|
||||
*/
|
||||
|
|
1
event.h
1
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 *);
|
||||
|
|
Loading…
Reference in New Issue