diff options
author | runge <runge> | 2007-12-16 02:26:38 +0000 |
---|---|---|
committer | runge <runge> | 2007-12-16 02:26:38 +0000 |
commit | 3d0bd73627f7aa19d45488eeee49781ca9faa0f8 (patch) | |
tree | 6afda9c91d0be9cf6be2d0db0a094c0e76c38097 /x11vnc/keyboard.c | |
parent | 2689647d6c7a9ab9c88faacf5dbc0200e9bc4a24 (diff) | |
download | libtdevnc-3d0bd73627f7aa19d45488eeee49781ca9faa0f8.tar.gz libtdevnc-3d0bd73627f7aa19d45488eeee49781ca9faa0f8.zip |
x11vnc: fix find_display and usleep() prototype on macosx.
-display console and check DISPLAY /tmp/...:0 on macosx.
implement -noxinerama.
Diffstat (limited to 'x11vnc/keyboard.c')
-rw-r--r-- | x11vnc/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/x11vnc/keyboard.c b/x11vnc/keyboard.c index a3f0120..d52d7cf 100644 --- a/x11vnc/keyboard.c +++ b/x11vnc/keyboard.c @@ -259,7 +259,7 @@ void clear_locks(void) { #else XModifierKeymap *map; int i, j, k = 0; - unsigned int state; + unsigned int state = 0; RAWFB_RET_VOID @@ -279,6 +279,7 @@ void clear_locks(void) { #endif { state = mask_state(); + /* this may contain non-locks too... */ rfbLog("state: 0x%x\n", state); } if (! state) { |