diff --git a/scripting/workspace_wrapper.cpp b/scripting/workspace_wrapper.cpp index da84eb1a39..86f98966d7 100644 --- a/scripting/workspace_wrapper.cpp +++ b/scripting/workspace_wrapper.cpp @@ -63,6 +63,8 @@ GETTER(int, workspaceHeight) GETTER(QSize, desktopGridSize) GETTER(int, desktopGridWidth) GETTER(int, desktopGridHeight) +GETTER(int, activeScreen) +GETTER(int, numScreens) #undef GETTER diff --git a/scripting/workspace_wrapper.h b/scripting/workspace_wrapper.h index 8c502a92cf..d8700a37ad 100644 --- a/scripting/workspace_wrapper.h +++ b/scripting/workspace_wrapper.h @@ -60,6 +60,8 @@ class WorkspaceWrapper : public QObject * The height of the display, that is height of all combined screens. **/ Q_PROPERTY(int displayHeight READ displayHeight) + Q_PROPERTY(int activeScreen READ activeScreen) + Q_PROPERTY(int numScreens READ numScreens) private: Q_DISABLE_COPY(WorkspaceWrapper) @@ -125,6 +127,8 @@ void setter( rettype val ); int displayWidth() const; int displayHeight() const; QSize displaySize() const; + int activeScreen() const; + int numScreens() const; Q_INVOKABLE QList< KWin::Client* > clientList() const; /**