diff options
author | runge <runge> | 2008-10-19 16:16:41 +0000 |
---|---|---|
committer | runge <runge> | 2008-10-19 16:16:41 +0000 |
commit | 1c03dd4d51a35103e93c3adaf1f619c868324c77 (patch) | |
tree | acbd2c41501e1c491023ab36717febdab32aff03 /x11vnc/xrandr.c | |
parent | 16c7ea1b357ab518ee5a40f2a663843f064479a9 (diff) | |
download | libtdevnc-1c03dd4d51a35103e93c3adaf1f619c868324c77.tar.gz libtdevnc-1c03dd4d51a35103e93c3adaf1f619c868324c77.zip |
x11vnc: -chatwindow, -scale WxH, -enc changes.
Diffstat (limited to 'x11vnc/xrandr.c')
-rw-r--r-- | x11vnc/xrandr.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/x11vnc/xrandr.c b/x11vnc/xrandr.c index e319d42..74842c2 100644 --- a/x11vnc/xrandr.c +++ b/x11vnc/xrandr.c @@ -162,6 +162,8 @@ int check_xrandr_event(char *msg) { if (! xrandr && ! xrandr_maybe) { return 0; } + + if (xrandr_base_event_type && XCheckTypedEvent(dpy, xrandr_base_event_type + RRScreenChangeNotify, &xev)) { int do_change, qout = 0; @@ -172,7 +174,9 @@ int check_xrandr_event(char *msg) { if (first && ! xrandr) { fprintf(stderr, "\n"); - qout = 1; + if (getenv("X11VNC_DEBUG_XRANDR") == NULL) { + qout = 1; + } } first = 0; @@ -230,11 +234,15 @@ int check_xrandr_event(char *msg) { XDisplayWidth(dpy, scr), XDisplayHeight(dpy, scr)); rfbLog("check_xrandr_event(): returning control to" " caller...\n"); + + return do_change; } #else xev.type = 0; #endif + + return 0; } |