From 0c6945ba17e05b2030637ca11d3b78f429d6e28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 22 Jun 2012 09:29:32 +0200 Subject: [PATCH] Add property onAllDesktops to Toplevel and Client --- client.h | 4 ++++ toplevel.h | 4 ++++ 2 files changed, 8 insertions(+) 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)