]> git.sur5r.net Git - i3/i3lock/commitdiff
added WM_CLASS property 218/head
authorivanvig <ivanmvig@gmail.com>
Tue, 15 Jan 2019 19:10:39 +0000 (16:10 -0300)
committerivanvig <ivanmvig@gmail.com>
Tue, 15 Jan 2019 19:10:39 +0000 (16:10 -0300)
xcb.c

diff --git a/xcb.c b/xcb.c
index 280be5534ede9dc9c07bb8df7bb6d4c7fa584cb0..4f065542928fc1435d4ee171ebe6c6f22d2b7b78 100644 (file)
--- a/xcb.c
+++ b/xcb.c
@@ -149,6 +149,15 @@ xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, c
                         strlen(name),
                         name);
 
+    xcb_change_property(conn,
+                        XCB_PROP_MODE_REPLACE,
+                        win,
+                        XCB_ATOM_WM_CLASS,
+                        XCB_ATOM_STRING,
+                        8,
+                        2 * (strlen("i3lock") + 1),
+                        "i3lock\0i3lock\0");
+
     /* Map the window (= make it visible) */
     xcb_map_window(conn, win);