Introduce a VirtualDesktop class
Summary: This is the first change for a larger virtual desktop refactoring. So far for X11 virtual desktops are just a number. The current virtual desktop is a number between 1 and the count of virtual desktops. Similar a Toplevel is on the virtual desktop by setting the number as a property. In the long run we want to change that and allow to have windows on multiple virtual desktops and also support virtual desktops on Wayland. On Wayland a virtual desktop will be an object. As a first step a VirtualDesktop class is introduced which currently is just a glorifed wrapper around the x11 desktop number. The VirtualDesktopManager now holds a pointer to the current desktop and the available desktops are a QVector of VirtualDesktops. The implicit mapping to counting of desktops is removed. Though the internal API is still completely count based. In follow up changes this will be turned into being more and more VirtualDesktop based. At least the Core should be completely transferred to be VirtualDesktop based instead of uint based. Test Plan: virtual desktop auto test still passes (test coverage 97 % line, 83 % conditionals) Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D3290
parent
002d6674
Please register or sign in to comment