From 62f0e62d5e43e07cbfc96f1696137317ce4482ee Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 2 Oct 2009 16:05:56 +0200 Subject: [PATCH] wibox: don't listen for every button press/release Signed-off-by: Julien Danjou --- objects/wibox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/wibox.c b/objects/wibox.c index 14c10c64e..22976749f 100644 --- a/objects/wibox.c +++ b/objects/wibox.c @@ -212,7 +212,6 @@ wibox_init(wibox_t *w, int phys_screen) XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_LEAVE_WINDOW | XCB_EVENT_MASK_STRUCTURE_NOTIFY - | XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE | XCB_EVENT_MASK_POINTER_MOTION | XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_PROPERTY_CHANGE }); @@ -1234,6 +1233,7 @@ luaA_wibox_buttons(lua_State *L) { luaA_button_array_set(L, 1, 2, &wibox->buttons); luaA_object_emit_signal(L, 1, "property::buttons", 0); + xwindow_buttons_grab(wibox->window, &wibox->buttons); } return luaA_button_array_get(L, 1, &wibox->buttons);