summaryrefslogtreecommitdiff
path: root/i3lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'i3lock.c')
-rw-r--r--i3lock.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/i3lock.c b/i3lock.c
index 3332f83..55cedba 100644
--- a/i3lock.c
+++ b/i3lock.c
@@ -231,21 +231,14 @@ static void handle_visibility_notify(xcb_visibility_notify_event_t *event) {
}
/*
- * Called when the keyboard mapping changes. We update our symbols and re-grab
- * pointer/keyboard.
+ * Called when the keyboard mapping changes. We update our symbols.
*
*/
static void handle_mapping_notify(xcb_mapping_notify_event_t *event) {
xcb_refresh_keyboard_mapping(symbols, event);
- xcb_ungrab_pointer(conn, XCB_CURRENT_TIME);
- xcb_ungrab_keyboard(conn, XCB_CURRENT_TIME);
- grab_pointer_and_keyboard(conn, scr, cursor);
-
modeswitchmask = get_mod_mask(conn, symbols, XK_Mode_switch);
numlockmask = get_mod_mask(conn, symbols, XK_Num_Lock);
-
- xcb_flush(conn);
}
/*