diff --git a/client.h b/client.h index c92e6eff86..3e84d1db17 100644 --- a/client.h +++ b/client.h @@ -90,6 +90,10 @@ class Client * The desktop this Client is on. If the Client is on all desktops the property has value -1. **/ Q_PROPERTY(int desktop READ desktop WRITE setDesktop NOTIFY desktopChanged) + /** + * Whether the Client is on all desktops. That is desktop is -1. + **/ + Q_PROPERTY(bool onAllDesktops READ isOnAllDesktops WRITE setOnAllDesktops NOTIFY desktopChanged) /** * Whether this Client is fullScreen. A Client might either be fullScreen due to the _NET_WM property * or through a legacy support hack. The fullScreen state can only be changed if the Client does not diff --git a/toplevel.h b/toplevel.h index 5f189ff56b..aba932141c 100644 --- a/toplevel.h +++ b/toplevel.h @@ -60,6 +60,10 @@ class Toplevel Q_PROPERTY(int x READ x) Q_PROPERTY(int y READ y) Q_PROPERTY(int desktop READ desktop) + /** + * Whether the window is on all desktops. That is desktop is -1. + **/ + Q_PROPERTY(bool onAllDesktops READ isOnAllDesktops) Q_PROPERTY(QRect rect READ rect) Q_PROPERTY(QPoint clientPos READ clientPos) Q_PROPERTY(QSize clientSize READ clientSize)