summaryrefslogtreecommitdiff
path: root/src/surface/vnc.c
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2013-03-20 11:49:00 +0000
committerVincent Sanders <vincent.sanders@collabora.co.uk>2013-04-09 17:27:41 +0100
commit08f5d6e00ff12502cea62e7410da3df0cc18ab3b (patch)
treedf0ab7a1f4c7a46a0743f186b022219be630b676 /src/surface/vnc.c
parentab47efdb2ee3e0199fbfc3fa42aa1ac77794cf94 (diff)
downloadlibnsfb-08f5d6e00ff12502cea62e7410da3df0cc18ab3b.tar.gz
libnsfb-08f5d6e00ff12502cea62e7410da3df0cc18ab3b.tar.bz2
Wayland surface handler with mouse input based on X surface handler
Diffstat (limited to 'src/surface/vnc.c')
-rw-r--r--src/surface/vnc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/surface/vnc.c b/src/surface/vnc.c
index eb32560..ca9455b 100644
--- a/src/surface/vnc.c
+++ b/src/surface/vnc.c
@@ -497,7 +497,13 @@ static bool vnc_input(nsfb_t *nsfb, nsfb_event_t *event, int timeout)
event->value.controlcode = NSFB_CONTROL_TIMEOUT;
ret = rfbProcessEvents(vncscreen, timeout * 1000);
- return true;
+ if (ret == 0) {
+ /* valid event */
+ return true;
+
+ }
+
+ /* connection error occurred */
}
return false;