event: also filter leave notify events
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
31ba962065
commit
97fb463e76
3
event.c
3
event.c
|
@ -456,6 +456,9 @@ event_handle_leavenotify(void *data __attribute__ ((unused)),
|
||||||
wibox_t *wibox;
|
wibox_t *wibox;
|
||||||
client_t *c;
|
client_t *c;
|
||||||
|
|
||||||
|
if(ev->mode != XCB_NOTIFY_MODE_NORMAL)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if((c = client_getbywin(ev->event)))
|
if((c = client_getbywin(ev->event)))
|
||||||
{
|
{
|
||||||
if(globalconf.hooks.mouse_leave != LUA_REFNIL)
|
if(globalconf.hooks.mouse_leave != LUA_REFNIL)
|
||||||
|
|
Loading…
Reference in New Issue