Fix disabling the external screen
[lilass.git] / external_screen.py
index 895405e20d4a2fd01217ce306f64b596809b1bc6..01c744ba2fe350c2810bdb457524674b951f13fd 100755 (executable)
@@ -72,7 +72,7 @@ if externalResolutions is not None: # we need to ask what to do
                else:
                        internalArgs += ["--primary"]
 else:
-       internalArgs = ["--mode", res2str(internalResolutions[0]), "--primary"]
+       internalArgs = ["--mode", res2xrandr(internalResolutions[0]), "--primary"]
        externalArgs = ["--off"]
 # and do it
 call = ["xrandr", "--output", internalName] + internalArgs + ["--output", externalName] + externalArgs