summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2012-09-27 22:25:08 +0200
committerPeter Wu <lekensteyn@gmail.com>2012-09-27 22:25:08 +0200
commit25d7e38a339d60aa532ebd4fcfc9e710186e834a (patch)
treef7cf45d0e2d02a8d47eff0bd93889f2c3822af19
parent99b98cde93b35a90d35e780deb4335f84d0f65b3 (diff)
downloadc-files-25d7e38a339d60aa532ebd4fcfc9e710186e834a.tar.gz
xcbviewfs: cleanup, fix type of empty_cursor_data
-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;