Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.0.0
-
Arch Linux 64-bit with one plain X session, using two video cards, two separate screens and two separate window managers
Section "Monitor"
Identifier "LeftMonitor"
EndSection
Section "Monitor"
Identifier "RightMonitor"
EndSection
Section "Device"
Identifier "LeftCard"
Driver "nouveau"
BusID "PCI:2:0:0"
EndSection
Section "Device"
Identifier "RightCard"
Driver "nouveau"
BusID "PCI:3:0:0"
EndSection
Section "Screen"
Identifier "LeftScreen"
Device "LeftCard"
Monitor "LeftMonitor"
EndSection
Section "Screen"
Identifier "RightScreen"
Device "RightCard"
Monitor "RightMonitor"
EndSection
Section "ServerLayout"
Identifier "My X Server"
Screen 0 "LeftScreen" 0 0
Screen 1 "RightScreen" RightOf "LeftScreen"
EndSection
Arch Linux 64-bit with one plain X session, using two video cards, two separate screens and two separate window managers Section "Monitor" Identifier "LeftMonitor" EndSection Section "Monitor" Identifier "RightMonitor" EndSection Section "Device" Identifier "LeftCard" Driver "nouveau" BusID "PCI:2:0:0" EndSection Section "Device" Identifier "RightCard" Driver "nouveau" BusID "PCI:3:0:0" EndSection Section "Screen" Identifier "LeftScreen" Device "LeftCard" Monitor "LeftMonitor" EndSection Section "Screen" Identifier "RightScreen" Device "RightCard" Monitor "RightMonitor" EndSection Section "ServerLayout" Identifier "My X Server" Screen 0 "LeftScreen" 0 0 Screen 1 "RightScreen" RightOf "LeftScreen" EndSection
-
3fdc4ae0ed156851c99dee4b52340cfbc0f9aaf7
Description
If you have two screens configured in such a way that they are not one large virtual desktop, e.g. you cannot move windows between them, then for most X applications you can choose which screen to start the app by setting the DISPLAY variable, e.g. open up a terminal on the first display and then start something else on the second display:
DISPLAY=:0.1 xterm
If you do that with a Qt 5 app, it will start up on the first display anyway.
I didn't figure out why yet; when XOpenDisplay is called, the Display object does have the display name as given.