[Spice-devel] Process watches even when there is no X activity

Submitted by Jeremy White on June 2, 2012, 6:02 p.m.

Details

Message ID 4FCA551C.1090705@codeweavers.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Jeremy White June 2, 2012, 6:02 p.m.
I have done further research, and I believe this patch to be correct.
It makes xspice usable for me on remote hosts.

---
 src/spiceqxl_main_loop.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/spiceqxl_main_loop.c b/src/spiceqxl_main_loop.c
index 1718861..b06d5eb 100644
--- a/src/spiceqxl_main_loop.c
+++ b/src/spiceqxl_main_loop.c
@@ -317,7 +317,7 @@  static void select_and_check_watches(void)
 
 static void xspice_wakeup_handler(pointer data, int nfds, pointer readmask)
 {
-    if (!nfds) {
+    if (!nfds && ring_is_empty(&watches)) {
         return;
     }
     select_and_check_watches();