X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autorandr.py;h=d36b568485aca6e87a3b61e83ada3be63fe866b6;hb=d1743d00b1e577110bb5f4e0993bfed61cba16a7;hp=4187932632c1bb008c3d88cad62a31f1f1912611;hpb=3a1b5c484ea8a184a0ce6cdd61808d655e002746;p=deb_pkgs%2Fautorandr.git diff --git a/autorandr.py b/autorandr.py index 4187932..d36b568 100755 --- a/autorandr.py +++ b/autorandr.py @@ -48,7 +48,7 @@ if sys.version_info.major == 2: else: import configparser -__version__ = "1.6" +__version__ = "1.7" try: input = raw_input @@ -645,6 +645,9 @@ def get_fb_dimensions(configuration): x = (a * o_width + b * o_height + c) / w y = (d * o_width + e * o_height + f) / w o_width, o_height = x, y + if "rotate" in output.options: + if output.options["rotate"] in ("left", "right"): + o_width, o_height = o_height, o_width if "pos" in output.options: o_left, o_top = map(int, output.options["pos"].split("x")) o_width += o_left