event: also push the wibox on widget button events

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-29 14:59:29 +02:00
parent d3e3c0c922
commit 7d20e63bc0
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ event_handle_button(void *data, xcb_connection_t *connection, xcb_button_press_e
if(w)
{
widget_push(globalconf.L, w);
event_button_callback(ev, &w->buttons, 1, NULL);
wibox_push(globalconf.L, wibox);
event_button_callback(ev, &w->buttons, 2, NULL);
}
}
else if((c = client_getbywin(ev->event)))