From: Ingo Bürk Date: Mon, 21 Sep 2015 22:01:36 +0000 (+0200) Subject: Set a proper WM_CLASS on frame windows. X-Git-Tag: 4.11~7^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d4f8ce90bcf1e07d5abaa6f12fc47d2bb1dc36d;p=i3%2Fi3 Set a proper WM_CLASS on frame windows. --- 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);