summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-11-26 18:10:27 +0100
committerSimon Rettberg2019-11-26 18:10:27 +0100
commit73be468f66c644d197f82076a589b4ef12999551 (patch)
tree6a0ffccc557be23b3e6074cb5df4232e81d87128
parentImprove Xlib error handling (diff)
downloadbeamergui-73be468f66c644d197f82076a589b4ef12999551.tar.gz
beamergui-73be468f66c644d197f82076a589b4ef12999551.tar.xz
beamergui-73be468f66c644d197f82076a589b4ef12999551.zip
Make sure screen at (0, 0) is marked primaryv26
-rw-r--r--src/xprivate.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xprivate.cpp b/src/xprivate.cpp
index bef9471..b8f10b6 100644
--- a/src/xprivate.cpp
+++ b/src/xprivate.cpp
@@ -682,8 +682,12 @@ bool XPrivate::setOutputResolution(OutputInfo *oi, int x, int y, const QSize &si
x, y, mode,
RR_Rotate_0,
&oi->id, 1);
- if (s == RRSetConfigSuccess)
+ if (s == RRSetConfigSuccess) {
+ if (x == 0 && y == 0) {
+ XRRSetOutputPrimary(_display, DefaultRootWindow(_display), oi->id);
+ }
break;
+ }
}
}
qDebug() << (s != RRSetConfigSuccess ? "Failed to" : "") << "Set" << oi->outputName << "to" << size << "-- offset" << x << "/" << y;