diff options
Diffstat (limited to 'x11vnc/xkb_bell.c')
-rw-r--r-- | x11vnc/xkb_bell.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/x11vnc/xkb_bell.c b/x11vnc/xkb_bell.c index 1c01f7e..0ac0ceb 100644 --- a/x11vnc/xkb_bell.c +++ b/x11vnc/xkb_bell.c @@ -40,6 +40,10 @@ void initialize_xkb(void) { return; } + if (! xauth_raw(1)) { + return; + } + if (! XkbOpenDisplay(DisplayString(dpy), &xkb_base_event_type, &ir, NULL, NULL, &reason) ) { if (! quiet) { @@ -49,6 +53,7 @@ void initialize_xkb(void) { xkb_base_event_type = 0; xkb_present = 0; } + xauth_raw(0); } void initialize_watch_bell(void) { |