From 1082e1a9f11a51b4ab1f913ad400c700c36b97b9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 6 Sep 2018 17:26:37 +0200 Subject: Fix reverting resolution --- src/xx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xx.cpp b/src/xx.cpp index d9c05d6..0a98b00 100644 --- a/src/xx.cpp +++ b/src/xx.cpp @@ -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) -- cgit v1.2.3-55-g7522