Bad window placement and involuntary window resizes on wayland
Affected version
Any version post 2a62e690 commit
Bug summary
My wayland display set up is as follows: 4K monitor left of 1080p monitor. 4k monitor has scale set to 200%, 1080p monitor is set to 100%.
Since the abovementioned commit in !2338 (merged) I am experiencing this erratic behavior. I've bisected this on Archlinux, which makes it quite easy, since I only had to change the commit in the PKGBUILD and try the builds manually to see if the issue still reproduced. I realize this commit has been a part of mutter for a while, but because of a project I have been exclusively using Windows the last few months, that is why I am only noticing this issue now.
The bug makes it so new windows get placed in very awkward positions, for example the CSD (is that the term?) bar might be placed underneath the gnome shell top bar, making it basically impossible to grab it the first time. The most annoying thing however is that small windows just resize automatically to double size sometimes, most noticably when alt-tab switching (I have the keyboard shortcut changed to "Switch windows"). Please refer to the attached video clip which showcases both issues. I open a terminal window, it gets placed awkwardly, then it magically resizes to double size as I alt-tabbed.
Steps to reproduce
Install any recent enough mutter. Set up your monitors as in my setup. Try to use GNOME in any productive way. Fail.
What happened
Bad window placement, unrequested window resizes
What did you expect to happen
Not that
Relevant logs, screenshots, screencasts etc.
Screencast will be attached after creating issue.