From d709180738be7a350e238a49b1c11205fdf419a0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 18 Dec 2008 16:58:15 +0100 Subject: [PATCH] wibox: reset mouse_over on visibility/attachment changes Signed-off-by: Julien Danjou --- wibox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wibox.c b/wibox.c index 9c0f8b572..87e243339 100644 --- a/wibox.c +++ b/wibox.c @@ -545,6 +545,7 @@ wibox_setvisible(wibox_t *wibox, bool v) if(v != wibox->isvisible) { wibox->isvisible = v; + wibox->mouse_over = NULL; if(wibox->screen != SCREEN_UNDEF) { @@ -587,6 +588,8 @@ wibox_detach(wibox_t *wibox) /* restore position */ wibox->isvisible = v; + wibox->mouse_over = NULL; + simplewindow_wipe(&wibox->sw); for(int i = 0; i < globalconf.screens[wibox->screen].wiboxes.len; i++)