Two clicks required to close modal non-CSD dialog on Windows
Steps to reproduce
- Launch gtk4-widget-factory with CSD disabled:
GTK_CSD=0 gtk4-widget-factory
- Go to page 2 -> press "Inform" button. A dialog opens.
- Try to close the dialog using the X button in the top right corner.
Current behavior
Initial click does not close the dialog. The second click closes it.
Expected outcome
Clicking the X button once closes the dialog.
Version information
GTK 4.14.2
Windows 11 (MinGW)
Additional information
This only seems to be an issue with modal dialogs, when disabling CSD.
Before the first click, the hover state of the X button does not change. After the first click, the hover state changes properly, and the button becomes clickable.
FWIW, the issue does not happen in GTK 3.