summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-05-22 02:22:43 +0000
committerDana Jansens <danakj@orodu.net>2003-05-22 02:22:43 +0000
commit4d814a383b099c48ad9b61cb94d25ef16b1a698a (patch)
tree14ee14be18619aef1786e8b4c56d6decc355f18b /openbox/client.c
parentd6cb5adbeaf0b7fbb55aca942ae5b8f62f77b4ea (diff)
add actions for changing client layers to abov/below/normal
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c
index e1c56042..19a10c21 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2451,3 +2451,18 @@ Client *client_find_directional(Client *c, Direction dir)
return best_client;
}
+
+void client_set_layer(Client *self, int layer)
+{
+ if (layer < 0) {
+ self->below = TRUE;
+ self->above = FALSE;
+ } else if (layer == 0) {
+ self->below = self->above = FALSE;
+ } else {
+ self->below = FALSE;
+ self->above = TRUE;
+ }
+ client_calc_layer(self);
+ client_change_state(self); /* reflect this in the state hints */
+}