From d2a4f8f346777f6e5d9f31c9c00b838feee84993 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 8 Jan 2021 20:45:11 +1100 Subject: [PATCH] [client] spice: dont ignore input that doesn't exit the window --- client/src/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 0ce4c116..ce7b2912 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -962,19 +962,17 @@ static void handleMouseNormal(double ex, double ey) g_state.windowPos.x + g_state.border.x + tx, g_state.windowPos.y + g_state.border.y + ty)) { - g_cursor.inView = false; + g_cursor.inView = false; /* pre-empt the window leave flag if the warp will leave our window */ if (tx < 0 || ty < 0 || tx > g_state.windowW || ty > g_state.windowH) - { g_cursor.inWindow = false; - } /* ungrab the pointer and move the local cursor to the exit point */ XUngrabPointer(g_state.wminfo.info.x11.display, CurrentTime); warpMouse(tx, ty, true); + return; } - return; } int x, y;