summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-10 17:15:41 +0000
committerDana Jansens <danakj@orodu.net>2007-05-10 17:15:41 +0000
commit4a34c7ddb250130e59d664862363f88eb875c01c (patch)
treeb6c2c632edac27a6d259634666739ac3e53572d0 /openbox
parentf3424ddd3b80ccb43e68f832711c7a513f909e1f (diff)
don't get the layer from the group like that. let new windows go in their default layer. they are already kept above their parents.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/openbox/client.c b/openbox/client.c
index d8a28a24..8fb48160 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -73,7 +73,6 @@ static void client_get_session_ids(ObClient *self);
static void client_get_area(ObClient *self);
static void client_get_desktop(ObClient *self);
static void client_get_state(ObClient *self);
-static void client_get_layer(ObClient *self);
static void client_get_shaped(ObClient *self);
static void client_get_mwm_hints(ObClient *self);
static void client_get_colormap(ObClient *self);
@@ -1004,6 +1003,7 @@ static void client_get_all(ObClient *self, gboolean real)
from per-app settings */
client_get_session_ids(self);
+ /* now we got everything that can affect the decorations */
if (!real)
return;
@@ -1019,9 +1019,6 @@ static void client_get_all(ObClient *self, gboolean real)
desktop is not specified */
client_get_shaped(self);
- client_get_layer(self); /* if layer hasn't been specified, get it from
- other sources if possible */
-
{
/* a couple type-based defaults for new windows */
@@ -1109,41 +1106,6 @@ static void client_get_desktop(ObClient *self)
}
}
-static void client_get_layer(ObClient *self)
-{
- if (!(self->above || self->below)) {
- if (self->group) {
- /* apply stuff from the group */
- GSList *it;
- gint layer = -2;
-
- for (it = self->group->members; it; it = g_slist_next(it)) {
- ObClient *c = it->data;
- if (c != self && !client_search_transient(self, c) &&
- client_normal(self) && client_normal(c))
- {
- layer = MAX(layer,
- (c->above ? 1 : (c->below ? -1 : 0)));
- }
- }
- switch (layer) {
- case -1:
- self->below = TRUE;
- break;
- case -2:
- case 0:
- break;
- case 1:
- self->above = TRUE;
- break;
- default:
- g_assert_not_reached();
- break;
- }
- }
- }
-}
-
static void client_get_state(ObClient *self)
{
guint32 *state;