From 7e3c06c85b02ff029590b3403b760c2fceffee12 Mon Sep 17 00:00:00 2001 From: ivanvig Date: Tue, 15 Jan 2019 16:10:39 -0300 Subject: [PATCH] added WM_CLASS property --- xcb.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xcb.c b/xcb.c index 280be55..4f06554 100644 --- 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); -- 2.39.5