Window snapping/edge resistance is in the wrong place on non-rectangular workspace multi-monitor desktops
Affected version
- Your OS and version: Debian testing
- Affected Mutter version: gnome-shell and mutter versions: 42.0-3 (and 43.1-2/43.2-5)
- Does this issue appear in XOrg and/or Wayland: Xorg (does not seem to happen on Wayland)
Bug summary
With a multi-monitor set up where the displays have different resolutions (and hence the workspace is non-rectangular), and top of a display is not aligned with the top of the workspace, then the window snap/edge-resistance is to "the top of the workspace", not to "the top the display".
Steps to reproduce
-
Have a multi-monitor setup
-
Use a different display resolution for each display
-
Align the displays so that their top is not aligned, eg:
$ xrandr | grep ' connected' eDP-1 connected 1920x1080+0+60 (normal left inverted right x axis y axis) 309mm x 173mm DP-1-1 connected primary 1920x1200+1920+0 (normal left inverted right x axis y axis) 518mm x 324mm
Notice how the top of the first display is at y = 60.
-
Move a window (dragging with alt makes it easier to reproduce), and try and snap it (with shift modifier) to the top of the first display.
What happened
Windows snap/have-edge-resistance to the top of the workspace, i.e. where workspace y = 0.
What did you expect to happen
Windows should snap/have-edge-resistance to the top of the display, i.e. where workspace y = 60
Relevant logs, screenshots, screencasts etc.
Screencast of eDP-1 1920x1080+0+60
: