Fix primary screen selection.
When selecting the primary screen, the m_primaryScreen value obtained from the xcb_connect() call should be respected. This ensures that the proper primary screen is selected when specifying the DISPLAY environment variable. Task-number: QTBUG-27220 Change-Id: I60aa207f13d919087d4d2913141c804928684731 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
This commit is contained in:
parent
7df995a9bd
commit
3fdc4ae0ed
@ -184,7 +184,7 @@ void QXcbConnection::updateScreens()
|
||||
activeScreens << screen;
|
||||
++screenNumber;
|
||||
if (!primaryScreen && primary) {
|
||||
if (primary->output == XCB_NONE || outputs[i] == primary->output) {
|
||||
if (m_primaryScreen == xcbScreenNumber && (primary->output == XCB_NONE || outputs[i] == primary->output)) {
|
||||
primaryScreen = screen;
|
||||
siblings.prepend(siblings.takeLast());
|
||||
#ifdef Q_XCB_DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user