Skip to content
  • Martin Flöser's avatar
    Properly swap the quick tile side when pressing the shortcut again · 139b4dc8
    Martin Flöser authored
    Summary:
    The quick tile shortcuts have a feature of moving the window to the next
    screen if one presses the same shortcut again.
    E.g. if a window is quick tiled to the left on the right most screen,
    quick tile again to left should move it to the left screen and quick tile
    right. Thus it swaps the borders.
    
    This wasn't handled correctly, especially not for modes like top and
    bottom. If a window is quick tiled to the top an impossible mode was
    generated: Left | Right. Doesn't make sense.
    
    This change fixes the mode swapping and extends our quick tile testing
    to cover the situation.
    
    BUG: 382313
    FIXED-IN: 5.10.4
    
    Test Plan: Extended test case
    
    Reviewers: #plasma, #kwin
    
    Subscribers: plasma-devel, kwin
    
    Tags: #kwin
    
    Differential Revision: https://phabricator.kde.org/D6708
    139b4dc8