wibox: reset mouse_over on visibility/attachment changes

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-12-18 16:58:15 +01:00
parent 8a43415c0c
commit d709180738
1 changed files with 3 additions and 0 deletions

View File

@ -545,6 +545,7 @@ wibox_setvisible(wibox_t *wibox, bool v)
if(v != wibox->isvisible) if(v != wibox->isvisible)
{ {
wibox->isvisible = v; wibox->isvisible = v;
wibox->mouse_over = NULL;
if(wibox->screen != SCREEN_UNDEF) if(wibox->screen != SCREEN_UNDEF)
{ {
@ -587,6 +588,8 @@ wibox_detach(wibox_t *wibox)
/* restore position */ /* restore position */
wibox->isvisible = v; wibox->isvisible = v;
wibox->mouse_over = NULL;
simplewindow_wipe(&wibox->sw); simplewindow_wipe(&wibox->sw);
for(int i = 0; i < globalconf.screens[wibox->screen].wiboxes.len; i++) for(int i = 0; i < globalconf.screens[wibox->screen].wiboxes.len; i++)