summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-09-06 17:26:37 +0200
committerSimon Rettberg2018-09-06 17:26:37 +0200
commit1082e1a9f11a51b4ab1f913ad400c700c36b97b9 (patch)
tree73c4effec623ba01924befda46d85e5d5ebb73fb
parentAlways init modes on startup (diff)
downloadbeamergui-1082e1a9f11a51b4ab1f913ad400c700c36b97b9.tar.gz
beamergui-1082e1a9f11a51b4ab1f913ad400c700c36b97b9.tar.xz
beamergui-1082e1a9f11a51b4ab1f913ad400c700c36b97b9.zip
Fix reverting resolution
-rw-r--r--src/xx.cpp2
1 files changed, 1 insertions, 1 deletions
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)