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.
This commit is contained in:
Steven Calwas 2020-08-29 00:49:12 -07:00 committed by Matthias Clasen
parent b64d888288
commit 86d38e6ae2

View File

@ -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,