From 4d814a383b099c48ad9b61cb94d25ef16b1a698a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 22 May 2003 02:22:43 +0000 Subject: add actions for changing client layers to abov/below/normal --- openbox/client.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'openbox/client.c') 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 */ +} -- cgit v1.2.3