X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.hh;h=b64878eeed5eb525851ffc624040d2f7e56433c8;hb=aef2ab758da67369e365c8d59c6242fa58b9e5b2;hp=f782a3559ef4dac5984a332b8ea222c754c482a3;hpb=7bae794382c7a64a6427b16d1339b98120a5166f;p=chaz%2Fopenbox
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