From 2d4f8ce90bcf1e07d5abaa6f12fc47d2bb1dc36d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Tue, 22 Sep 2015 00:01:36 +0200 Subject: [PATCH] Set a proper WM_CLASS on frame windows. --- src/x.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/x.c b/src/x.c index bf0cb914..9b9ba6aa 100644 --- 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); -- 2.39.5