From 86d38e6ae2cccb46cc01facdbd3bdfa9b47a10ed Mon Sep 17 00:00:00 2001 From: Steven Calwas Date: Sat, 29 Aug 2020 00:49:12 -0700 Subject: [PATCH] Fix window unresponsive to mouse after app-switch w/drawing tablet Partially fixes issue #2191 regarding switching to another app while hovering a stylus over a drawing tablet causes subsequent mouse clicks in the app to be ignored. I was not able to reproduce the other behavior described in #2191 concerning tiling a window. --- gdk/win32/gdkevents-win32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 67df5026ec..e3c7f824ac 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -3742,7 +3742,11 @@ gdk_event_translate (MSG *msg, GDK_NOTE (EVENTS, g_print (" %s thread: %" G_GINT64_FORMAT, msg->wParam ? "YES" : "NO", (gint64) msg->lParam)); + + // Clear graphics tablet state + _gdk_input_ignore_core = 0; break; + case WM_NCHITTEST: /* TODO: pass all messages to DwmDefWindowProc() first! */ return_val = handle_nchittest (msg->hwnd, window,