Skip to content

window: Really fix portrait orientation check for tiling

Florian Müllner requested to merge fmuellner/mutter:fix-tile-check into main

Commit 3bfcb6d1 fixed the check for tiling via keybindings, but ignored a subtle edge case when tiling with the pointer: The monitor used for tiling is the monitor with the pointer, which is not necessarily the one that contains the largest part of the window.

That is, the correct monitor to check against depends on the context where the function is called. We can either figure it out automatically via the current window drag, or make it a parameter.

The latter is clearer, because the callers already decide which monitor to use for tiling anyway.

Fixes: 3bfcb6d1 ("window: Fix portrait orientation check for tiling")

Merge request reports