WayfireWM / wayfire

A modular and extensible wayland compositor
https://wayfire.org/
MIT License
2.37k stars 177 forks source link

Power-cycling the monitor with a Foot window open changes it's size and position. #2392

Closed vanfanel closed 1 month ago

vanfanel commented 3 months ago

Describe the bug Turning off the monitor and then one again, causes Foot size and position to be altered.

For example, if I have in foot.ini: initial-window-size-chars=90x26 then of course Foot windows are created of that 90x26 size, and centered.

But if I leave a Foot window open and idle, and power-cycle the monitor, Foot window becomes smaller and placed somewhere else in the desktop.

Maximized windows don't seem to be affected.

To Reproduce

  1. Open a Foot terminal window, of 90x26 for example.
  2. Turn the monitor off and on again.
  3. The Foot terminal window is now of a different size (smaller) and is at a different position on the desktop!

Expected behavior I believe Foot's window should keep the same size and position when power-cycling the monitor.

Wayfire version Wayfire 0.9.0-0583157 (Jun 21 2024) branch master

More information This is apparently a compositor bug. Foot's author says that it simply uses the size and position provided by the compositor, so some of this information seems to be lost on monitor power-cycling: https://codeberg.org/dnkl/foot/issues/1750

ammen99 commented 3 months ago

I recommend using the preserve-output plugin if you are power cycling your monitors. It should prevent the bug.

vanfanel commented 3 months ago

I recommend using the preserve-output plugin if you are power cycling your monitors. It should prevent the bug.

I added preserve-output to my plugin list, but the bug is still showing.

vanfanel commented 1 month ago

Ok, I tried this again with stable Wayfire 0.9.0, and the preserve-output plugin now does it's job as expected, so I guess this should be closed :)