Skip to content
  • David Edmundson's avatar
    [wayland] add enter/leave virtual desktop API · f521d4bb
    David Edmundson authored
    Summary:
    As setDesktop was changed to "move" this left unSetDesktop non-symetric.
    
    This replaces it with explicit API to enter/leave.
    
    This also moves new API to the new object based API rather than still
    using ints.
    
    Where numbers are used it has been tidied up so that desktop IDs are
    uint, which should be used when we have a list of desktops.
    int is used only when we have either a desktop ID or NET::OnAllDesktops
    (-1)
    
    Effects API cleared up to use this and use a set of x11 IDs, which
    avoids any potential complications of handling add and removes any
    ambiguity with what happens if you leave all desktops and such.
    
    Test Plan:
    testVirtualDesktops passes (with pending kwayland patch)
    Moving a window in the desktop grid on X11 behaves
    Moving a window in the desktop grid on wayland behaves
    
    Reviewers: #kwin, zzag
    
    Subscribers: kwin
    
    Tags: #kwin
    
    Differential Revision: https://phabricator.kde.org/D16704
    f521d4bb