Wayland: broken window positioning restoration
GIMP version: master
Operating System: Wayland/Linux
Description of the bug
Our code for restoring dialogs to their position cannot work anymore on Wayland.
- For instance hit '/' for the action search. Place the small dialog somewhere.
- Exit the action search dialog.
- Call '/' again.
Expected result: the dialog should open at same position.
Actual result: it opens at random other positions.
This is because Wayland does not allow us to know about global display geometry, window positions, etc. All we can get is relative position to parent window. Unfortunately this is not enough as many advanced users use the repositioning feature to always get their commonly used dialogs (which they may call dozens of times in a row) in the same position instead of always having to search for where they appear. Also that allows to not have stuff popping up above the work area all the time, by getting them out of the way (thus typically out of the main window area).
@carlosg proposes for me to write on the wayland-devel ML to discuss a Wayland protocol to restore window state. I'll try and make the time to do so.