Skip to content

Fix surface autohide

Luca Bacci requested to merge lb90/gtk:dismiss-popovers-fix into main

Consider having an open modal / autohide popover:

If you click on application's own windows, the popover will be closed automatically. But what happens when clicking on foreign windows?

Closes popover Eats click
GTK3 / X11 No No
GTK3 / Wayland No No
GTK4 / X11 No Yes (multiple times)
GTK4 / Wayland Yes Yes

The GTK3 behavior (do not close the popover, but also do not eat any input) is different from GTK4 but perfectly fine. The GTK4 behavior on Wayland is perfectly fine, but GTK4 on X11 is definitely bad.

This MR makes GTK4 / X11 act just like GTK4 / Wayland.

Fixes #5400 (closed), #3502, #4701

Edited by Luca Bacci

Merge request reports