Export screen information to scripts
This commit is contained in:
parent
999d64bb19
commit
356b406ae3
2 changed files with 6 additions and 0 deletions
|
@ -63,6 +63,8 @@ GETTER(int, workspaceHeight)
|
||||||
GETTER(QSize, desktopGridSize)
|
GETTER(QSize, desktopGridSize)
|
||||||
GETTER(int, desktopGridWidth)
|
GETTER(int, desktopGridWidth)
|
||||||
GETTER(int, desktopGridHeight)
|
GETTER(int, desktopGridHeight)
|
||||||
|
GETTER(int, activeScreen)
|
||||||
|
GETTER(int, numScreens)
|
||||||
|
|
||||||
#undef GETTER
|
#undef GETTER
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,8 @@ class WorkspaceWrapper : public QObject
|
||||||
* The height of the display, that is height of all combined screens.
|
* The height of the display, that is height of all combined screens.
|
||||||
**/
|
**/
|
||||||
Q_PROPERTY(int displayHeight READ displayHeight)
|
Q_PROPERTY(int displayHeight READ displayHeight)
|
||||||
|
Q_PROPERTY(int activeScreen READ activeScreen)
|
||||||
|
Q_PROPERTY(int numScreens READ numScreens)
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(WorkspaceWrapper)
|
Q_DISABLE_COPY(WorkspaceWrapper)
|
||||||
|
@ -125,6 +127,8 @@ void setter( rettype val );
|
||||||
int displayWidth() const;
|
int displayWidth() const;
|
||||||
int displayHeight() const;
|
int displayHeight() const;
|
||||||
QSize displaySize() const;
|
QSize displaySize() const;
|
||||||
|
int activeScreen() const;
|
||||||
|
int numScreens() const;
|
||||||
|
|
||||||
Q_INVOKABLE QList< KWin::Client* > clientList() const;
|
Q_INVOKABLE QList< KWin::Client* > clientList() const;
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue