Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorEngine::IVirtualDesktopManager Class Referenceabstract

#include <PhosphorEngine/IVirtualDesktopManager.h>

Inheritance diagram for PhosphorEngine::IVirtualDesktopManager:
[legend]

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.

Constructor & Destructor Documentation

◆ ~IVirtualDesktopManager()

virtual PhosphorEngine::IVirtualDesktopManager::~IVirtualDesktopManager ( )
virtualdefault

Member Function Documentation

◆ currentDesktop()

virtual int PhosphorEngine::IVirtualDesktopManager::currentDesktop ( ) const
pure virtual

The global (active-screen) current virtual desktop, 1-based.

Implemented in PhosphorWorkspaces::VirtualDesktopManager.

◆ currentDesktopForScreen()

virtual int PhosphorEngine::IVirtualDesktopManager::currentDesktopForScreen ( const QString & screenId) const
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.

◆ perScreenModeActive()

virtual bool PhosphorEngine::IVirtualDesktopManager::perScreenModeActive ( ) const
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.


The documentation for this class was generated from the following file: