Merge xrandr commands for mode and panning

This commit is contained in:
Xodetaetl
2014-10-19 14:00:12 +02:00
parent 5a17be8620
commit e05902e803

View File

@@ -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)