commit a395006844adbd538c0ab0f201fc956b0e7d7bc6
parent 393fb2ed553eb05c080036e79da9f988ed8f1b68
Author: Ingo Bürk <admin@airblader.de>
Date: Tue, 15 Jan 2019 20:59:38 +0100
Merge pull request #218 from ivanvig/wm_class-patch
added wm_class property
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git 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);