- 
    Bug 
- 
    Resolution: Done
- 
    P2: Important 
- 
    5.1.0 , 5.2.0 Beta1 , 5.2.0
- 
    None
- 
    Fedora 17, XCB 1.9, KDE Plasma Workspace 4.12-pre, running kscreen
 (that means the X screen is removed immediately as the monitor is disconnected)
- 
        f4b8697c40bd476ef6bf83418e144adce7c7d4a3
Steps to reproduce:
- connect a second monitor to your X session
- move your Qt5 application window there
- disconnect the monitor
When the X screen is removed, the application window disappears and won't show again.
I've tested with Qt Creator and the secondary screen was placed to the left of the primary. I don't know if it makes a difference to the right.
This does not happen with Qt 4.
- relates to
- 
                    QTBUG-38326 Qt Creator window disappears when plugging out second monitor -         
- Closed
 
-         
- 
                    QTBUG-31354 XCB: QApplication crashes when there is no monitor connected using QT5 -         
- Closed
 
-         
- 
                    QTBUG-32681 Crash after disconnecting monitor -         
- Closed
 
-         
- 
                    QTBUG-40174 xrandr disabling the current screen results in qml applications crashing -         
- Closed
 
-         
- 
                    QTBUG-42985 Qt GUI application disappear or crash when no screens are available -         
- Closed
 
-         
- 
                    QTBUG-44511 Qt is crashing, when one of the monitors is turned off or when the screen geometry is changed -         
- Closed
 
-         
- 
                    QTBUG-31389 "QXcbConnection: Failed to get the primary output of the screen" when launching applications when using X forwarding -         
- Closed
 
-         
- replaces
- 
                    QTBUG-38129 QGuiApplication::primaryScreen()->handle() is null when (dis)connecting a screen -           
- Closed
 
-