[Spice-devel,spice-server,v2] reds: use bool for RedsState::dispatcher_allows_client_mouse

Submitted by Frediano Ziglio on June 16, 2017, 1:59 p.m.

Details

Message ID 20170616135904.4961-1-fziglio@redhat.com
State New
Headers show
Series "reds: Use bool for boolean types" ( rev: 6 5 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio June 16, 2017, 1:59 p.m.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/reds-private.h | 2 +-
 server/reds.c         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/reds-private.h b/server/reds-private.h
index 227827d..5aebd5c 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -103,7 +103,7 @@  struct RedsState {
     GList *channels;
     int mouse_mode;
     int is_client_mouse_allowed;
-    int dispatcher_allows_client_mouse;
+    bool dispatcher_allows_client_mouse;
     MonitorMode monitor_mode;
     SpiceTimer *mig_timer;
 
diff --git a/server/reds.c b/server/reds.c
index 5b6bb1a..073b944 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4318,7 +4318,7 @@  void reds_core_timer_remove(RedsState *reds,
 
 void reds_update_client_mouse_allowed(RedsState *reds)
 {
-    int allow_now = FALSE;
+    bool allow_now = false;
     int x_res = 0;
     int y_res = 0;
     int num_active_workers = g_list_length(reds->qxl_instances);
@@ -4327,7 +4327,7 @@  void reds_update_client_mouse_allowed(RedsState *reds)
         GListIter it;
         QXLInstance *qxl;
 
-        allow_now = TRUE;
+        allow_now = true;
         FOREACH_QXL_INSTANCE(reds, it, qxl) {
             if (red_qxl_get_primary_active(qxl)) {
                 allow_now = red_qxl_get_allow_client_mouse(qxl, &x_res, &y_res);