diff options
author | Simon Rettberg | 2020-08-28 16:58:31 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-08-28 16:58:31 +0200 |
commit | 3d6705b8b9adf92b1a4fa29b81134b872ec340cf (patch) | |
tree | f4e4ebe5c81fa6769e230027a3ef0bc28db93de9 /src/xx.cpp | |
parent | Fix center mode (again) (diff) | |
download | beamergui-3d6705b8b9adf92b1a4fa29b81134b872ec340cf.tar.gz beamergui-3d6705b8b9adf92b1a4fa29b81134b872ec340cf.tar.xz beamergui-3d6705b8b9adf92b1a4fa29b81134b872ec340cf.zip |
Read screen resolution directly from randr, Qt uses cached values
Diffstat (limited to 'src/xx.cpp')
-rw-r--r-- | src/xx.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -151,6 +151,9 @@ ScreenInfo ScreenSetup::initScreenInfo(const OutputInfo *oi) const if (oi->mode != nullptr) { si.currentResolution = QSize(QSize(int(oi->mode->width), int(oi->mode->height))); } + if (oi->crtc != nullptr) { + si.location = QPoint(oi->crtc->x, oi->crtc->y); + } for (int i = 0; i < oi->output->nmode; ++i) { if (a->_modeMap.contains(oi->output->modes[i])) { auto m = a->_modeMap.value(oi->output->modes[i]); |