event: reset wibox widget mouse_over on leave

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-21 17:57:10 +02:00
parent 1ddbfaaaf0
commit 248bfb0e95
1 changed files with 1 additions and 0 deletions

View File

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