[PATCH v3 08/10] winex11.drv: Release clipping window on FocusOut events.
Rémi Bernon
rbernon at codeweavers.com
Mon Oct 7 08:02:14 CDT 2019
When a window receives FocusOut events, whether it is because the WM
grabs the keyboard or because of an actual input focus change, we should
release the clipping window.
We will re-apply it on FocusIn event if it is necessary from Wine's
perspective.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/winex11.drv/event.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index bd1b0cf2d72..d0b92f30153 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -937,6 +937,8 @@ static BOOL X11DRV_FocusOut( HWND hwnd, XEvent *xev )
}
if (!hwnd) return FALSE;
+ ungrab_clipping_window();
+
/* ignore wm specific NotifyUngrab / NotifyGrab events w.r.t focus */
if (event->mode == NotifyGrab || event->mode == NotifyUngrab) return FALSE;
--
2.23.0
More information about the wine-devel
mailing list