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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]