event: reset wibox widget mouse_over on leave
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1ddbfaaaf0
commit
248bfb0e95
1
event.c
1
event.c
|
@ -394,6 +394,7 @@ event_handle_leavenotify(void *data __attribute__ ((unused)),
|
||||||
/* call mouse leave function on widget the mouse was over */
|
/* call mouse leave function on widget the mouse was over */
|
||||||
luaA_wibox_userdata_new(globalconf.L, wibox);
|
luaA_wibox_userdata_new(globalconf.L, wibox);
|
||||||
luaA_dofunction(globalconf.L, wibox->mouse_over->mouse_leave, 1, 0);
|
luaA_dofunction(globalconf.L, wibox->mouse_over->mouse_leave, 1, 0);
|
||||||
|
wibox->mouse_over = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue