summaryrefslogtreecommitdiff
path: root/xcbviewfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'xcbviewfs.c')
-rw-r--r--xcbviewfs.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/xcbviewfs.c b/xcbviewfs.c
index fdd7497..8c57822 100644
--- a/xcbviewfs.c
+++ b/xcbviewfs.c
@@ -23,13 +23,21 @@
goto lbl; \
} while (0)
-static const char empty_cursor_data[32];
+static unsigned char empty_cursor_data[32];
int main(int argc, char **argv) {
xcb_connection_t *c;
xcb_screen_t *screen;
xcb_window_t win;
xcb_cursor_t cursor;
+
+ /* options */
+ int grab_pointer = 0;
+ int hide_cursor = 0;
+ int grab_kbd = 0;
+ int fullscreen = 0;
+ //grab_kbd = !(fullscreen = grab_pointer = hide_cursor = 0 );
+
if (argc < 2) {
fprintf(stderr, "Usage: %s filename\n", *argv);
return 1;
@@ -58,13 +66,6 @@ int main(int argc, char **argv) {
xcb_map_window(c, win);
xcb_flush(c);
- /* options */
- int grab_pointer = 0;
- int hide_cursor = 0;
- int grab_kbd = 0;
- int fullscreen = 0;
- grab_kbd = !(fullscreen = grab_pointer = hide_cursor = 0 );
-
if (grab_pointer) {
xcb_grab_pointer_cookie_t cookie;
xcb_grab_pointer_reply_t *reply;