From 056ff3b50cddd39b6f45969c17611dc3bf396ae9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 4 Jan 2003 08:41:42 +0000 Subject: better focus passing around for now --- src/client.hh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/client.hh') diff --git a/src/client.hh b/src/client.hh index f782a355..b64878ee 100644 --- a/src/client.hh +++ b/src/client.hh @@ -352,6 +352,16 @@ public: //! Returns the type of the window, one of the OBClient::WindowType values inline WindowType type() const { return _type; } + //! Returns if the window should be treated as a normal window. + /*! + Some windows (desktops, docks, splash screens) have special rules applied + to them in a number of places regarding focus or user interaction. + */ + inline bool normal() const { + return ! (_type == Type_Desktop || _type == Type_Dock || + _type == Type_Splash); + } + //! Returns the desktop on which the window resides /*! This value is a 0-based index.
@@ -458,6 +468,15 @@ public: //! Request the client to close its window. void close(); + //! Sets the window's stacking layer + /*! + @param l An integer specifying the layer.
+ '0' - the normal layer
+ '> 0' - the 'above' layer
+ '< 0' - the 'below' layer + */ + void setStackLayer(int l); + //! Shades or unshades the client window /*! @param shade true if the window should be shaded; false if it should be -- cgit v1.2.3