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/132/raw.patch | git am

b/xcb.c

13
@@ -9,10 +9,12 @@
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
 #include <stdbool.h>
22
+#include <string.h>
23
 #include <unistd.h>
24
 #include <assert.h>
25
 #include <err.h>
26
@@ -133,6 +135,16 @@ xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, c
27
                       mask,
28
                       values);
29
 
30
+    char *name = "i3lock";
31
+    xcb_change_property(conn,
32
+                        XCB_PROP_MODE_REPLACE,
33
+                        win,
34
+                        XCB_ATOM_WM_NAME,
35
+                        XCB_ATOM_STRING,
36
+                        8,
37
+                        strlen(name),
38
+                        name);
39
+
40
     /* Map the window (= make it visible) */
41
     xcb_map_window(conn, win);
42