diff options
-rw-r--r-- | src/xprivate.cpp | 6 |
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; |