[Spice-devel] [PATCH] Remove global "allowed" variable
Frediano Ziglio
fziglio at redhat.com
Thu Jun 2 09:34:52 UTC 2016
This global was always the same value as dispatcher_allows_client_mouse.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/reds.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/server/reds.c b/server/reds.c
index 914d70d..427cc1e 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4185,7 +4185,6 @@ void reds_core_timer_remove(RedsState *reds,
void reds_update_client_mouse_allowed(RedsState *reds)
{
- static int allowed = FALSE;
int allow_now = FALSE;
int x_res = 0;
int y_res = 0;
@@ -4203,9 +4202,8 @@ void reds_update_client_mouse_allowed(RedsState *reds)
}
}
- if (allow_now || allow_now != allowed) {
- allowed = allow_now;
- reds_set_client_mouse_allowed(reds, allowed, x_res, y_res);
+ if (allow_now || allow_now != reds->dispatcher_allows_client_mouse) {
+ reds_set_client_mouse_allowed(reds, allow_now, x_res, y_res);
}
}
--
2.7.4
More information about the Spice-devel
mailing list