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 Use SERVICE_TYPES parameter to kcoreaddons_desktop_to_json() 2015-12-09 23:42:45 +00:00
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 [effects] Use arg="true" in the kcfg files 2017-04-15 10:03:34 +02:00
desktopgrid_config.cpp [effects] Use arg="true" in the kcfg files 2017-04-15 10:03:34 +02:00
desktopgrid_config.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2018-07-23 05:24:40 +02:00
desktopgrid_config.h Use Q_SLOTS and Q_SIGNALS instead of slots and signals 2013-07-24 09:46:54 +02:00
desktopgrid_config.ui desktop grid: add option to hide buttons 2015-10-29 23:36:10 +01:00
desktopgridconfig.kcfgc Use KConfigXT in DesktopGrid effect 2012-09-15 11:24:11 +02:00
main.qml desktop grid: use -/+ text buttons 2015-10-29 23:36:10 +01:00