PDA

View Full Version : X11 two GPU



waiter
10th November 2013, 03:07
Display displays[2];

displays[0] = XOpenDisplay(":0.0");
displays[1] = XOpenDisplay(":1.0");

[...]

window[0] = XCreateSimpleWindow(displays[0], XDefaultRootWindow(displays[0]),
0, 0, width, height, 0, 0, 0);
window[1] = XCreateSimpleWindow(displays[1], XDefaultRootWindow(displays[1]),
0, 0, width, height, 0, 0, 0);


however i don't understand this: on a system with two X11 servers (two gpus) without xinerama, if i want that window[0] goes to the first xserver and the second xserver, what functions should i call with Qt?

ChrisW67
10th November 2013, 03:39
None, this has nothing to do with Qt.

waiter
10th November 2013, 07:34
None, this has nothing to do with Qt.

How can I show QWidget between two X11 Server?

ChrisW67
10th November 2013, 20:52
Two separate instances of your Qt program with different values of the DISPLAY environment variable or -display command line option. QApplication binds to a single X display. You can pass a particular display (non-default) to the constructor but you can only have one QApplication object in the program.