Merge branch 'do-not-block-input-wm-mouse-activate-gtk-4-8' into 'gtk-4-8'

GdkWin32: do not block input in advance from WM_MOUSEACTIVATE

See merge request GNOME/gtk!5207
This commit is contained in:
Luca Bacci 2022-11-10 08:50:29 +00:00
commit 5b98e171b2

View File

@ -2729,22 +2729,15 @@ gdk_event_translate (MSG *msg,
}
break;
case WM_MOUSEACTIVATE:
{
if (GDK_IS_DRAG_SURFACE (window))
{
*ret_valp = MA_NOACTIVATE;
return_val = TRUE;
}
case WM_MOUSEACTIVATE:
if (GDK_IS_DRAG_SURFACE (window) ||
_gdk_modal_blocked (window))
{
*ret_valp = MA_NOACTIVATE;
return_val = TRUE;
}
if (_gdk_modal_blocked (window))
{
*ret_valp = MA_NOACTIVATEANDEAT;
return_val = TRUE;
}
}
break;
break;
case WM_POINTERACTIVATE:
if (GDK_IS_DRAG_SURFACE (window) ||