summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc
index a2106d86..381305f7 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -966,6 +966,22 @@ void OBClient::changeState()
}
+
+void OBClient::setStackLayer(int l)
+{
+ if (l == 0)
+ _above = _below = false; // normal
+ else if (l > 0) {
+ _above = true;
+ _below = false; // above
+ } else {
+ _above = false;
+ _below = true; // below
+ }
+ changeState();
+}
+
+
void OBClient::shade(bool shade)
{
if (shade == _shaded) return; // already done