GdkWin32: Modal-blocked surface can get activated and receive input
How to reproduce:
- Open
gtk4-demo
and run thePickers
demo - Click on the GtkFontButton to open a modal GtkFontChooserDialog
- While the dialog is open, click on the Pickers window
What happens:
The Pickers window is activated and from the second click onward receives input events.
Details:
The WM_MOUSEACTIVATE handler is supposed to block activation:
case WM_MOUSEACTIVATE:
...
if (_gdk_modal_blocked (window))
{
*ret_valp = MA_NOACTIVATEANDEAT;
return_val = TRUE;
}
But _gdk_modal_blocked
returns FALSE