aboutsummaryrefslogtreecommitdiffstats
path: root/xcb_gol.c
diff options
context:
space:
mode:
authorEliteTK <tomasz.kramkowski@gmail.com>2014-12-29 01:30:17 +0000
committerEliteTK <tomasz.kramkowski@gmail.com>2014-12-29 01:30:17 +0000
commitecdc45374aecdbcdb5c1d374742d9c528fb8298e (patch)
tree850edf5e8fd9d9d6bf6cfbf913706fb27e876321 /xcb_gol.c
parent7636b3f77215cc422b7dbf1d636269bea4b01726 (diff)
downloadc-stuff-ecdc45374aecdbcdb5c1d374742d9c528fb8298e.tar.gz
c-stuff-ecdc45374aecdbcdb5c1d374742d9c528fb8298e.tar.xz
c-stuff-ecdc45374aecdbcdb5c1d374742d9c528fb8298e.zip
More code.
Diffstat (limited to 'xcb_gol.c')
-rw-r--r--xcb_gol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xcb_gol.c b/xcb_gol.c
index 71beeb0..d07c2d6 100644
--- a/xcb_gol.c
+++ b/xcb_gol.c
@@ -10,6 +10,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <time.h>
#include <xcb/xcb.h>
#include <xcb/xcb_image.h>
@@ -126,6 +127,9 @@ int main(int argc, char **argv)
XCB_WINDOW_CLASS_INPUT_OUTPUT,
screen->root_visual,
mask, values);
+ xcb_change_property(connection, XCB_PROP_MODE_REPLACE, window,
+ XCB_ATOM_WM_NAME, XCB_ATOM_STRING, 8,
+ strlen(argv[0]), argv[0]);
xcb_pixmap_t pixmap = xcb_generate_id(connection);
xcb_create_pixmap(connection,