[Spice-devel] [PATCH spice-server 13/22] reds: use bool for RedsState::pending_mouse_event
Frediano Ziglio
fziglio at redhat.com
Fri Jun 16 09:13:25 UTC 2017
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/reds-private.h | 2 +-
server/reds.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/reds-private.h b/server/reds-private.h
index 878a306..56cb691 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -80,7 +80,7 @@ struct RedsState {
SpiceWatch *listen_watch;
SpiceWatch *secure_listen_watch;
RedCharDeviceVDIPort *agent_dev;
- int pending_mouse_event;
+ bool pending_mouse_event;
GList *clients;
MainChannel *main_channel;
InputsChannel *inputs_channel;
diff --git a/server/reds.c b/server/reds.c
index 8182856..fd13f20 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -912,11 +912,11 @@ void reds_handle_agent_mouse_event(RedsState *reds, const VDAgentMouseState *mou
total_msg_size);
if (!char_dev_buf) {
- reds->pending_mouse_event = TRUE;
+ reds->pending_mouse_event = true;
return;
}
- reds->pending_mouse_event = FALSE;
+ reds->pending_mouse_event = false;
internal_buf = (VDInternalBuf *)char_dev_buf->buf;
internal_buf->chunk_header.port = VDP_SERVER_PORT;
--
2.9.4
More information about the Spice-devel
mailing list