#include <PhosphorEngine/IVirtualDesktopManager.h>
Public Member Functions | |
| virtual | ~IVirtualDesktopManager ()=default |
| virtual int | currentDesktop () const =0 |
| The global (active-screen) current virtual desktop, 1-based. | |
| virtual int | currentDesktopForScreen (const QString &screenId) const |
| The current virtual desktop for a specific screen, 1-based. | |
| virtual bool | perScreenModeActive () const |
| True when at least two recorded screens are on different virtual desktops right now. | |
|
virtualdefault |
|
pure virtual |
The global (active-screen) current virtual desktop, 1-based.
Implemented in PhosphorWorkspaces::VirtualDesktopManager.
|
inlinevirtual |
The current virtual desktop for a specific screen, 1-based.
Under Plasma 6.7 "switch desktops independently for each screen" (per-output virtual desktops) each screen can be on its own desktop. The default returns the global currentDesktop(), which is correct for single-desktop / pre-6.7 setups and for screens with no per-output desktop on record.
Reimplemented in PhosphorWorkspaces::VirtualDesktopManager.
|
inlinevirtual |
True when at least two recorded screens are on different virtual desktops right now.
Default: false.
Superseded and kept only for the installed API: no production code calls it, only phosphor-workspaces' own tests. It is NOT a test for per-output virtual desktops being enabled, since two screens showing the same desktop answer false in that mode too; read KWin's setting for that.
Reimplemented in PhosphorWorkspaces::VirtualDesktopManager.