]> git.sur5r.net Git - i3/i3/commitdiff
Set a proper WM_CLASS on frame windows. 1945/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Mon, 21 Sep 2015 22:01:36 +0000 (00:01 +0200)
committerIngo Bürk <ingo.buerk@tngtech.com>
Tue, 22 Sep 2015 06:57:05 +0000 (08:57 +0200)
src/x.c

diff --git a/src/x.c b/src/x.c
index bf0cb914d6621303a1b23c8716d590b3d6c0ab0f..9b9ba6aa75482a338a4f0dc2db73bb84c0e92de6 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -145,6 +145,14 @@ void x_con_init(Con *con, uint16_t depth) {
 
     Rect dims = {-15, -15, 10, 10};
     con->frame = create_window(conn, dims, depth, visual, XCB_WINDOW_CLASS_INPUT_OUTPUT, XCURSOR_CURSOR_POINTER, false, mask, values);
+    xcb_change_property(conn,
+                        XCB_PROP_MODE_REPLACE,
+                        con->frame,
+                        XCB_ATOM_WM_CLASS,
+                        XCB_ATOM_STRING,
+                        8,
+                        (strlen("i3-frame") + 1) * 2,
+                        "i3-frame\0i3-frame\0");
 
     if (win_colormap != XCB_NONE)
         xcb_free_colormap(conn, win_colormap);