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

Jeremy White jwhite at codeweavers.com
Sat Jun 2 11:02:04 PDT 2012


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(-)

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();
-- 
1.7.9.5

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Attached Message Part
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120602/66c1896b/attachment.txt>


More information about the Spice-devel mailing list