diff options
-rw-r--r-- | src/xx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,6 @@ ScreenSetup::ScreenSetup() : a(new XPrivate()) exit(1); } updateScreenResources(); - //XSelectInput(a->_display, DefaultRootWindow(a->_display), StructureNotifyMask); XRRSelectInput(a->_display, DefaultRootWindow(a->_display), RROutputChangeNotifyMask); //XSync(a->_display, False); XSetIOErrorHandler((XIOErrorHandler) errorHandlerX); @@ -345,6 +344,7 @@ void ScreenSetup::revertChanges() continue; screenSize = screenSize.expandedTo(QSize(e->x + int(a->_modeMap[e->mode]->width), e->y + int(a->_modeMap[e->mode]->height))); } + a->setScreenSize(screenSize); for (CrtcMap::iterator it = a->_crtcBackup.begin(); it != a->_crtcBackup.end(); ++it) { auto e = it.value(); if (e->mode == None) |