From 70828a3ee481ef5b2ff1db2f0b29b38f0d0111ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 27 Jan 2012 08:08:00 +0100 Subject: [PATCH] Some more properties on Client * Read-only: minSize/maxSize * Read-write: noBorder --- client.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/client.h b/client.h index ca19662c0c..f8be3cb16e 100644 --- a/client.h +++ b/client.h @@ -222,6 +222,21 @@ class Client * The "Window Tabs" Group this Client belongs to. **/ Q_PROPERTY(KWin::ClientGroup* clientGroup READ clientGroup NOTIFY clientGroupChanged) + /** + * Minimum size as specified in WM_NORMAL_HINTS + **/ + Q_PROPERTY(QSize minSize READ minSize) + /** + * Maximum size as specified in WM_NORMAL_HINTS + **/ + Q_PROPERTY(QSize maxSize READ maxSize) + /** + * Whether the window has a decoration or not. + * This property is not allowed to be set by applications themselves. + * The decision whether a window has a border or not belongs to the window manager. + * If this property gets abused by application developers, it will be removed again. + **/ + Q_PROPERTY(bool noBorder READ noBorder WRITE setNoBorder) public: Client(Workspace* ws); Window wrapperId() const;