summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-15 05:50:56 +0000
committerDana Jansens <danakj@orodu.net>2003-10-15 05:50:56 +0000
commitc30df2e750d301f64a4a2cc56b43454104772079 (patch)
treed5b332f135bbf7c0283c59fb4db078d277f72753 /openbox/client.c
parentae04366751a726ae0f24967fb672bec778791c19 (diff)
dont let clients be above and below
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 30bceae5..651b569c 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -714,12 +714,13 @@ static void client_get_all(ObClient *self)
client_update_wmhints(self);
client_get_startup_id(self);
client_get_desktop(self);
- client_get_state(self);
client_get_shaped(self);
client_get_mwm_hints(self);
client_get_type(self);/* this can change the mwmhints for special cases */
+ client_get_state(self);
+
{
/* a couple type-based defaults for new windows */
@@ -2565,7 +2566,9 @@ void client_set_state(ObClient *self, Atom action, glong data1, glong data2)
fullscreen = TRUE;
} else if (state == prop_atoms.net_wm_state_above) {
self->above = TRUE;
+ self->below = FALSE;
} else if (state == prop_atoms.net_wm_state_below) {
+ self->above = FALSE;
self->below = TRUE;
} else if (state == prop_atoms.ob_wm_state_undecorated) {
undecorated = TRUE;