wibox: reset mouse over some various corner cases

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-01-16 10:08:21 +01:00
parent 944e2fd7e2
commit b1ab27a576
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,7 @@ wibox_resize(wibox_t *wibox, uint16_t width, uint16_t height)
wibox->sw.geometry.height = height; wibox->sw.geometry.height = height;
} }
wibox->need_update = true; wibox->need_update = true;
wibox->mouse_over = NULL;
} }
static void static void
@ -95,6 +96,7 @@ wibox_setposition(wibox_t *wibox, position_t p)
ewmh_update_workarea(screen_virttophys(wibox->screen)); ewmh_update_workarea(screen_virttophys(wibox->screen));
wibox->need_update = true; wibox->need_update = true;
wibox->mouse_over = NULL;
} }
} }
@ -1028,6 +1030,7 @@ luaA_wibox_newindex(lua_State *L)
{ {
simplewindow_orientation_set(&(*wibox)->sw, orientation_fromstr(buf, len)); simplewindow_orientation_set(&(*wibox)->sw, orientation_fromstr(buf, len));
(*wibox)->need_update = true; (*wibox)->need_update = true;
(*wibox)->mouse_over = NULL;
} }
break; break;
case A_TK_BORDER_COLOR: case A_TK_BORDER_COLOR: