diff options
-rw-r--r-- | src/xlib-wayland-test.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/xlib-wayland-test.c b/src/xlib-wayland-test.c deleted file mode 100644 index e2c7c93..0000000 --- a/src/xlib-wayland-test.c +++ /dev/null @@ -1,41 +0,0 @@ -#include <stdlib.h> -#include <stdio.h> - -#include "Xlib-wayland.h" - -int main(int argc, char *argv[]) -{ - Display *display; - Window win; - XID root; - XEvent e; - - display = XOpenDisplay(NULL); - root = XRootWindow(display, 0); - printf("opened display %p, root window is %d\n", display, root); - win = XCreateWindow(display, root, - 100, 100, 200, 200, 0, 24, - InputOutput, NULL, 0, NULL); - - printf("created window %d\n", win); - - XMapWindow(display, win); - XFlush(display); - - while (1) { - XNextEvent(display, &e); - switch (e.type) { - case MapNotify: - printf("got MapNotify event: window %d\n", - e.xmap.window); - break; - default: - printf("got event type %d\n", e.type); - break; - } - } - - XCloseDisplay(display); - - return 0; -} |