diff options
author | Bart Massey <bart@cs.pdx.edu> | 2013-08-21 22:42:51 -0700 |
---|---|---|
committer | Bart Massey <bart@cs.pdx.edu> | 2013-08-23 16:41:55 -0700 |
commit | bbc285cd97cf7658b3b86427afe7340bd5adfb5d (patch) | |
tree | bf191ca45698886ac98df60e56a875db82ab8b5d | |
parent | 11483e141fbb5f6bedb3cb1957f9354ecf8cb48b (diff) | |
download | util-image-bbc285cd97cf7658b3b86427afe7340bd5adfb5d.tar.gz |
added window names to test_xcb_image windows
-rw-r--r-- | image/test_xcb_image.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/image/test_xcb_image.c b/image/test_xcb_image.c index 3e3f717..bfdf4f1 100644 --- a/image/test_xcb_image.c +++ b/image/test_xcb_image.c @@ -30,6 +30,7 @@ #include <stdlib.h> #include <stdio.h> +#include <string.h> #include <xcb/xcb.h> @@ -164,6 +165,11 @@ main (int argc, char *argv[]) screen->root_visual, /* visual */ mask, valwin); /* masks, not used yet */ + /* From the tutorial: set the window title. */ + xcb_change_property (c, XCB_PROP_MODE_REPLACE, win, + XCB_ATOM_WM_NAME, XCB_ATOM_STRING, 8, + strlen ("drew"), "drew"); + /* Map the window on the screen */ xcb_map_window (c, win); @@ -200,6 +206,11 @@ main (int argc, char *argv[]) XCB_WINDOW_CLASS_INPUT_OUTPUT,/* class */ screen->root_visual, /* visual */ mask, valwin); /* masks, not used yet */ + /* From the tutorial: set the window title. */ + xcb_change_property (c, XCB_PROP_MODE_REPLACE, new_win, + XCB_ATOM_WM_NAME, XCB_ATOM_STRING, 8, + strlen ("got"), "got"); + |