Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin

From: Sebastian Sareyko <>
Date: Fri, 27 Sep 2019 15:58:13 +0200

On Fri, Sep 27, 2019, at 15:36, Hiltjo Posthuma wrote:

> Have you tried xrandr to reorder the screens? It should probably be solved in a
> different way.

Yeah, I tried that.

Here's how I use xrandr to configure a simple three screen setup:

    xrandr --output eDP1 --mode 1920x1080 --left-of HDMI1 \
        --output HDMI1 --mode 1920x1080 --primary --left-of VGA1 \
        --output VGA1 --mode 1680x1050

This should result in the following screen order: eDP1, HDMI1, VGA1
Moving the mouse cursor works as expected even without my patch.

The resulting screen order as returned by XineramaQueryScreens() however depends on wether VGA1 is plugged in at boot time or not. Right now, just after executing the above xrandr command, Xinerama tells me my screens are ordered as follows: HDMI1, eDP1, VGA1

As far as I can tell this behavior is somehow dependent on the graphics driver.

Kind regards,
Received on Fri Sep 27 2019 - 15:58:13 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 27 2019 - 16:00:29 CEST