kwin/effects/desktopgrid
David Edmundson f521d4bbe1 [wayland] add enter/leave virtual desktop API
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
2018-11-14 11:08:46 +00:00
..
CMakeLists.txt
desktopgrid.cpp [wayland] add enter/leave virtual desktop API 2018-11-14 11:08:46 +00:00
desktopgrid.h [wayland] Use the new plasma virtual desktop protocol 2018-11-01 16:35:29 +01:00
desktopgrid.kcfg
desktopgrid_config.cpp
desktopgrid_config.desktop
desktopgrid_config.h
desktopgrid_config.ui
desktopgridconfig.kcfgc
main.qml