Skip to content

xwayland: set xrandr primary output

#1407

To find XWayland output that should be the primary one, iterate through all XWayland outputs, and compare their geometry to the geometry of the primary logical monitor.

To avoid possible race conditions (Mutter's monitor configuration already updated, but Xrandr not yet), set the output both after Randr notifications and after 'monitors-changed' signal.

Works in dual-monitor configuration, both hidpi (2x).

No idea how it will work with tiled monitors though.

Edited by Aleksandr Mezin

Merge request reports