From dfe327301d7e970ad496deaf7acc2f0f7ac1c93b Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 19 Jan 2021 04:40:31 +1100 Subject: [PATCH] [client] spice: do not allow the inView to be set if mouse buttons held When using the meta resize feautre the cursor is over the client window, and as such the application continues to receive motion events. This causes the window size to spaz out. --- client/src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index 4597af17..137e3ee5 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -962,6 +962,11 @@ static void setCursorInView(bool enable) if (enable && !g_state.focused) return; + // do not allow the view to become active if any mouse buttons are being held, + // this fixes issues with meta window resizing. + if (enable && g_cursor.buttons) + return; + g_cursor.inView = enable; g_cursor.draw = params.alwaysShowCursor ? true : enable; g_cursor.redraw = true;