xcb: clear m_singlescreen before update

Pick-to: 6.4 6.3
Change-Id: Iafff57be82b5beb1f5702c00e0b6d7d0dd3ccdc2
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Jiang Wu 2022-05-19 15:02:01 +08:00 committed by Liang Qi
parent 03e76ac23d
commit fd9aeb1b38

View File

@ -598,6 +598,7 @@ void QXcbScreen::setMonitor(xcb_randr_monitor_info_t *monitorInfo, xcb_timestamp
m_crtcs.clear();
m_output = XCB_NONE;
m_crtc = XCB_NONE;
m_singlescreen = false;
if (!monitorInfo) {
m_monitor = nullptr;