diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2016-02-12 12:20:18 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-02-16 09:39:12 +0000 |
commit | 8bdc63495afe0f72319d9a7f5c5ce014c561115c (patch) | |
tree | d9d7b0dadb47715b457db5c75838f54b1b5fddc1 /server/reds.c | |
parent | 3108fb37e354f9981bbd0b3ec9a86ef7e3c8acb5 (diff) |
remove num_active_workers
This global variable was mainly 1.
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/reds.c b/server/reds.c index 01d4db53..e621a25b 100644 --- a/server/reds.c +++ b/server/reds.c @@ -572,10 +572,9 @@ gboolean reds_get_agent_mouse(const RedsState *reds) static void reds_update_mouse_mode(RedsState *reds) { int allowed = 0; - int qxl_count = red_dispatcher_qxl_count(); if ((reds->agent_mouse && reds->vdagent) || - (inputs_channel_has_tablet(reds->inputs_channel) && qxl_count == 1)) { + (inputs_channel_has_tablet(reds->inputs_channel))) { allowed = reds->dispatcher_allows_client_mouse; } if (allowed == reds->is_client_mouse_allowed) { |