Skip to content
  • Faith Ekstrand's avatar
    xwayland: Fix backwards need_rotate logic (v2) · a0545326
    Faith Ekstrand authored and Adam Jackson's avatar Adam Jackson committed
    
    
    When xdg_output support was added to Xwayland, need_rotate parameter was
    added to output_get_new_size where true gave you the old pre-xdg_output
    behavior and false gave the new behavior.  Unfortunately, the two places
    where this is called, need_rotate was set backwards.  This caused input
    get clampped to the wrong dimensions.  Also, the logic for deciding
    whether or not to flip was wrong because, if need_rotate was false, it
    would always flip which is not what you want.
    
    v2 (Daniel Stone):
     - Fix output_get_new_size so that it doesn't flip the dimensions when
       need_rotate is false.
    
    Signed-off-by: default avatarJason Ekstrand <jason@jlekstrand.net>
    Reviewed-by: default avatarDaniel Stone <daniels@collabora.com>
    Reviewed-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
    a0545326