i3 - improved tiling WM


Set window name

Patch status: superseded

Patch by Axel Wagner

To apply this patch, use:
curl http://cr.i3wm.org/patch/130/raw.patch | git am

b/xcb.c

13
@@ -9,6 +9,7 @@
14
  */
15
 #include <xcb/xcb.h>
16
 #include <xcb/xcb_image.h>
17
+#include <xcb/xcb_atom.h>
18
 #include <xcb/dpms.h>
19
 #include <stdio.h>
20
 #include <stdlib.h>
21
@@ -133,6 +134,16 @@ xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, c
22
                       mask,
23
                       values);
24
 
25
+    char *name = "i3lock";
26
+    xcb_change_property (conn,
27
+                         XCB_PROP_MODE_REPLACE,
28
+                         win,
29
+                         XCB_ATOM_WM_NAME,
30
+                         XCB_ATOM_STRING,
31
+                         8,
32
+                         strlen (name),
33
+                         name);
34
+
35
     /* Map the window (= make it visible) */
36
     xcb_map_window(conn, win);
37