From 73be468f66c644d197f82076a589b4ef12999551 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 26 Nov 2019 18:10:27 +0100 Subject: Make sure screen at (0, 0) is marked primary --- src/xprivate.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-55-g7522