]> git.sur5r.net Git - i3/i3/commitdiff
Don’t focus placeholder windows.
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 25 Mar 2015 21:47:23 +0000 (22:47 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 25 Mar 2015 21:47:23 +0000 (22:47 +0100)
src/restore_layout.c

index c6a87f06e8aabc0c0a5e8d68bb60e200e3fbba92..53a70d69afe7345c8ed792951303e98aa7c4b18d 100644 (file)
@@ -196,6 +196,11 @@ static void open_placeholder_window(Con *con) {
                 config.client.placeholder.background,
                 XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_STRUCTURE_NOTIFY,
             });
+        /* Make i3 not focus this window. */
+        xcb_icccm_wm_hints_t hints;
+        xcb_icccm_wm_hints_set_none(&hints);
+        xcb_icccm_wm_hints_set_input(&hints, 0);
+        xcb_icccm_set_wm_hints(restore_conn, placeholder, &hints);
         /* Set the same name as was stored in the layout file. While perhaps
          * slightly confusing in the first instant, this brings additional
          * clarity to which placeholder is waiting for which actual window. */