event: also filter leave notify events

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maarten Maathuis 2009-04-04 16:16:02 +02:00 committed by Julien Danjou
parent 31ba962065
commit 97fb463e76
1 changed files with 3 additions and 0 deletions

View File

@ -456,6 +456,9 @@ event_handle_leavenotify(void *data __attribute__ ((unused)),
wibox_t *wibox;
client_t *c;
if(ev->mode != XCB_NOTIFY_MODE_NORMAL)
return 0;
if((c = client_getbywin(ev->event)))
{
if(globalconf.hooks.mouse_leave != LUA_REFNIL)