wibox: don't listen for every button press/release

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-10-02 16:05:56 +02:00
parent f7746a198c
commit 62f0e62d5e
1 changed files with 1 additions and 1 deletions

View File

@ -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);