wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

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

Open vanfanel opened this issue 1 year ago • 2 comments

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

vanfanel avatar Jun 26 '24 14:06 vanfanel

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

ammen99 avatar Jun 26 '24 14:06 ammen99

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 avatar Jun 26 '24 14:06 vanfanel

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 :)

vanfanel avatar Aug 26 '24 18:08 vanfanel