summaryrefslogtreecommitdiff
path: root/xcb.c
diff options
context:
space:
mode:
authorAxel Wagner <mail@merovius.de>2013-04-09 18:31:25 +0200
committerMichael Stapelberg <michael@stapelberg.de>2013-04-11 22:54:48 +0200
commite69b98561b736a991f8c0d6d27ceaea621d2a271 (patch)
treea0787bf6a2e474ae7b07a90f3a4afe5e90801595 /xcb.c
parente0213cb1f5be55e101406c2dec67ec2dc178c78c (diff)
Set window name
Diffstat (limited to 'xcb.c')
-rw-r--r--xcb.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xcb.c b/xcb.c
index 6498241..5f3d298 100644
--- a/xcb.c
+++ b/xcb.c
@@ -9,10 +9,12 @@
*/
#include <xcb/xcb.h>
#include <xcb/xcb_image.h>
+#include <xcb/xcb_atom.h>
#include <xcb/dpms.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
+#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <err.h>
@@ -133,6 +135,16 @@ xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, c
mask,
values);
+ char *name = "i3lock";
+ xcb_change_property(conn,
+ XCB_PROP_MODE_REPLACE,
+ win,
+ XCB_ATOM_WM_NAME,
+ XCB_ATOM_STRING,
+ 8,
+ strlen(name),
+ name);
+
/* Map the window (= make it visible) */
xcb_map_window(conn, win);