summaryrefslogtreecommitdiffstats
path: root/x11vnc/xkb_bell.c
diff options
context:
space:
mode:
authorrunge <runge>2006-06-08 23:06:26 +0000
committerrunge <runge>2006-06-08 23:06:26 +0000
commit1776a3a55f59052bd69509c889e4370973305f0d (patch)
treee77c3c0b53a1f15c03bba215c60982bc3e28c727 /x11vnc/xkb_bell.c
parenta60ee2ee9f73d21c4407136d7a2878a34be2f7ed (diff)
downloadlibtdevnc-1776a3a55f59052bd69509c889e4370973305f0d.tar.gz
libtdevnc-1776a3a55f59052bd69509c889e4370973305f0d.zip
x11vnc: -display WAIT:..., -users unixpw=, su_verify dpy command.
Diffstat (limited to 'x11vnc/xkb_bell.c')
-rw-r--r--x11vnc/xkb_bell.c5
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) {