summaryrefslogtreecommitdiffstats
path: root/src/xprivate.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2020-02-16 10:24:21 +0100
committerSimon Rettberg2020-02-16 10:24:21 +0100
commitff570027f607016e2b263fedac1bda619a65e64e (patch)
tree0226d1ae35fe0e7447b2a7f6f64add6d3e37ce1f /src/xprivate.cpp
parentUse xrandr to actually set resolutions (diff)
downloadbeamergui-ff570027f607016e2b263fedac1bda619a65e64e.tar.gz
beamergui-ff570027f607016e2b263fedac1bda619a65e64e.tar.xz
beamergui-ff570027f607016e2b263fedac1bda619a65e64e.zip
Fix xrandr command line for positioning...
Diffstat (limited to 'src/xprivate.cpp')
-rw-r--r--src/xprivate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xprivate.cpp b/src/xprivate.cpp
index 370c6f5..01f265f 100644
--- a/src/xprivate.cpp
+++ b/src/xprivate.cpp
@@ -652,7 +652,7 @@ void XPrivate::setOutputResolution(QStringList &args, OutputInfo *oi, int x, int
// so we just pick the first one for now, as the GUI doesn't offer picking the rate
XRRModeInfo *best = _modeMap[modes.first()];
args << "--output" << oi->outputName << "--mode" << best->name << "--rate" << QString::number(toVertRefresh(best), 'f', 2);
- args << "--x" << QString::number(x) << "--y" << QString::number(y);
+ args << "--pos" << QString::asprintf("%dx%d", x, y);
if (x == 0 && y == 0 && !args.contains(QLatin1String("--primary"))) {
args.append("--primary");
}