[gnome-settings-daemon] xrandr: Fix "next rotation" not working



commit 3fa29ef7e3eca5befa5fe2131e66743e8040156e
Author: Heiher <admin heiher info>
Date:   Wed Dec 19 18:04:10 2012 +0100

    xrandr: Fix "next rotation" not working
    
    The GNOME_RR_ROTATION_NEXT enum value was not handled correctly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=664363

 plugins/xrandr/gsd-xrandr-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 8f97411..44ae935 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -1660,7 +1660,7 @@ handle_rotate_windows (GsdXrandrManager *mgr,
                 goto out;
         }
 
-        if (rotation < 0) {
+        if (rotation <= GNOME_RR_ROTATION_NEXT) {
                 /* Which rotation? */
 
                 get_allowed_rotations_for_output (current, priv->rw_screen, rotatable_output_info, &num_allowed_rotations, &allowed_rotations);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]