]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Revert "Apply normal rotation unless another one is set"
authortachylatus <helgesdk@gmail.com>
Thu, 30 Jan 2014 17:42:25 +0000 (18:42 +0100)
committertachylatus <helgesdk@gmail.com>
Thu, 30 Jan 2014 17:42:25 +0000 (18:42 +0100)
This reverts commit 007920e83cf934f765d4424fab8148c9611eaacc.

autorandr

index 1635ce5c5a2847935033584067d0c21cd8535564..e5f8a6e37f8dbc5aec61cb7d081ca7bc69b75326 100755 (executable)
--- a/autorandr
+++ b/autorandr
@@ -135,13 +135,12 @@ current_cfg_xrandr() {
                if (($4 == "left") || ($4 == "right")) {
                        split(A[1], B, "x");
                        A[1] = B[2]"x"B[1];
-                       print "rotate "$4;
-               }
-               else {
-                       print "rotate normal";
                }
                print "mode "A[1];
                print "pos "A[2]"x"A[3];
+               if ($4 !~ /^\(/) {
+                       print "rotate "$4;
+               }
                next;
        }
        # disconnected or disabled displays