From e05902e8033dbcf7a4e40028919e0329efe92184 Mon Sep 17 00:00:00 2001 From: Xodetaetl Date: Sun, 19 Oct 2014 14:00:12 +0200 Subject: [PATCH] Merge xrandr commands for mode and panning --- lutris/util/display.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lutris/util/display.py b/lutris/util/display.py index 55e950662..b2b138309 100644 --- a/lutris/util/display.py +++ b/lutris/util/display.py @@ -77,11 +77,8 @@ def change_resolution(resolution): logger.debug("Switching to %s on %s", display[1], display[0]) display_resolution = display_geom.split('+')[0] - cmd = "xrandr --output %s --mode %s" % (display_name, - display_resolution) + cmd = "xrandr --output %s --mode %s --panning %s" % ( + display_name, display_resolution, display_geom) subprocess.Popen(cmd, shell=True).communicate() - cmd = "xrandr --output %s --panning %s" % (display_name, - display_geom) logger.debug(cmd) - subprocess.Popen(cmd, shell=True)