From 475b59a2750212ee952f71be35a1178b21adef79 Mon Sep 17 00:00:00 2001 From: CometStorm991 Date: Sun, 23 Jun 2024 17:06:16 -0400 Subject: [PATCH] Ensure that input focus is returned to previous window when i3lock quits --- i3lock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/i3lock.c b/i3lock.c index 8406fa67..3d01251d 100644 --- a/i3lock.c +++ b/i3lock.c @@ -2655,6 +2655,7 @@ int main(int argc, char *argv[]) { xcb_ungrab_keyboard(conn, XCB_CURRENT_TIME); xcb_destroy_window(conn, win); set_focused_window(conn, screen->root, stolen_focus); + xcb_set_input_focus(conn, XCB_INPUT_FOCUS_PARENT /* revert_to */, stolen_focus, XCB_CURRENT_TIME); xcb_aux_sync(conn); return 0;