Windows move slightly on external monitor after some screen lock time
Affected version
mutter-44.1-1.fc38.x86_64 (i.e. Fedora 38 on x86_64), on Wayland (I do not use X11 any more)
Bug summary
If Gnome session locks the screen, after the screen is unlocked, the windows that have been snapped together previously (by pressing Shift while moving them) are ever so slightly overlapping. It's only by a few pixels and at first I thought I must have been imagining it, but after using this setup for a few days, it is definitely the case.
Steps to reproduce
- Start Firefox, position it on external monitor in top left corner by pressing Shift key when dragging the window.
- Open Terminal or Console and position them immediately to the right of Firefox windows, again by pressing Shift while moving.
- Repeat with some more Terminal/Console windows.
- Let Gnome lock the session.
- Unlock the session and check windows on external monitor, which are now ever so slightly overlapping.
- Repeating this a few times will make the problem worse and some text in terminals will become invisible.
What happened
Windows either grow or change position unexpectedly.
What did you expect to happen
Windows should stay exactly the same.
Relevant logs, screenshots, screencasts etc.
The hardware is ThinkPad T450s, which has 1920 x 1080 resolution on it built in panel (i.e not high DPI). The external monitor is Acer KG281K (i.e. 4k - ergo high DPI) and it is running at 3840 x 2160 at 60 Hz. I don't really know whether this has anything to do with it, but I thought I'd mention it just in case.
I am attaching two screenshots. One showing Console overlapping with Firefox, after I unlocked the session and while filing this bug. The next screenshot is me repositioning Console windows again, by moving them and pressing Shift, so that they snap back to Firefox edge.