summaryrefslogtreecommitdiffstats
path: root/x11vnc/userinput.c
diff options
context:
space:
mode:
authorrunge <runge>2007-02-10 21:52:26 +0000
committerrunge <runge>2007-02-10 21:52:26 +0000
commit90d96b971f04b11fe1902091a94be94697738766 (patch)
tree8331ed14521fd8e7b997465d6f482d521f4537cb /x11vnc/userinput.c
parent76720eb71bb18ec452ec1782af9f8b8d09e77efc (diff)
downloadlibvncserver-90d96b971f04b11fe1902091a94be94697738766.zip
libvncserver-90d96b971f04b11fe1902091a94be94697738766.tar.gz
x11vnc: watch textchat, etc in unixpw, implement kbdReleaseAllKeys, setSingleWindow, setServerInput. watch for OpenGL apps breaking XDAMAGE.
Diffstat (limited to 'x11vnc/userinput.c')
-rw-r--r--x11vnc/userinput.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/x11vnc/userinput.c b/x11vnc/userinput.c
index 3e6c581..6f2f80e 100644
--- a/x11vnc/userinput.c
+++ b/x11vnc/userinput.c
@@ -8796,7 +8796,7 @@ int check_ncache(int reset, int mode) {
RAWFB_RET(-1)
#endif
- if (! screen) {
+ if (! screen || ! dpy) {
return -1;
}
@@ -8806,6 +8806,10 @@ int check_ncache(int reset, int mode) {
ncache = 0;
#endif
+ if (reset && (first || cache_list_len == 0)) {
+ return -1;
+ }
+
if (ncache0) {
if (reset) {
;
@@ -8858,7 +8862,7 @@ if (c) fprintf(stderr, "check_ncache purged %d events\n", c);
if (reset) {
- rfbLog("check_ncache: resetting cache\n");
+ rfbLog("check_ncache: resetting cache: %d/%d %d %d\n", cache_list_num, cache_list_len, ncache, first);
for (i=0; i < cache_list_num; i++) {
free_rect(i);
}
OpenPOWER on IntegriCloud