From fa93f275bb03462e6d236fd50da0b96ddbd690da Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 25 Mar 2015 22:47:23 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20focus=20placeholder=20windows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/restore_layout.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/restore_layout.c b/src/restore_layout.c index c6a87f06..53a70d69 100644 --- a/src/restore_layout.c +++ b/src/restore_layout.c @@ -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. */ -- 2.39.5