7#include <phosphorworkspaces_export.h>
65 void onNumberOfDesktopsChanged(
int count);
66 void refreshFromKWin();
67 void onKWinCurrentChanged(
const QString& desktopId);
68 void onKWinDesktopCreated();
69 void onKWinDesktopRemoved();
70 void onKWinDesktopRowsChanged();
74 void applyDesktopListReply(
const QDBusMessage& reply,
const QString& currentId);
78 void clampScreenDesktopsToCount();
80 QDBusInterface* m_kwinVDInterface =
nullptr;
81 bool m_running =
false;
82 bool m_useKWinDBus =
false;
83 int m_currentDesktop = 1;
87 QHash<QString, int> m_screenDesktops;
88 int m_desktopCount = 1;
89 int m_desktopRows = 1;
90 QStringList m_desktopNames;
91 QStringList m_desktopIds;
92 uint m_refreshGeneration = 0;
Definition IVirtualDesktopManager.h:13
Definition VirtualDesktopManager.h:19
~VirtualDesktopManager() override
void removeScreenDesktop(const QString &screenId)
Drop a screen's recorded per-output desktop when the output is removed, so the map doesn't retain sta...
void currentDesktopChanged(int desktop)
void screenDesktopChanged(const QString &screenId, int desktop)
A single screen's current virtual desktop changed (per-output virtual desktops).
QStringList desktopNames() const
VirtualDesktopManager(QObject *parent=nullptr)
int currentDesktop() const override
The global (active-screen) current virtual desktop, 1-based.
void desktopCountChanged(int count)
void updateScreenDesktop(const QString &screenId, int desktop)
Record a screen's current virtual desktop (1-based).
bool perScreenModeActive() const override
True when at least two screens are on different virtual desktops, i.e.
int currentDesktopForScreen(const QString &screenId) const override
The current virtual desktop for a specific screen, 1-based.
void setCurrentDesktop(int desktop)
int desktopRows() const
Number of rows in KWin's virtual-desktop grid (>= 1).
Definition WindowTrackingService.h:46