From 922f5a50daab04086543007030173fc688d1ce83 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 6 Nov 2008 16:04:20 +0100 Subject: [PATCH] client: handle fixed window stacking and DIALOG windows Signed-off-by: Julien Danjou --- client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 6f3f2f93..4e0f5403 100644 --- a/client.c +++ b/client.c @@ -279,7 +279,7 @@ client_layer_translator(client_t *c) return LAYER_FULLSCREEN; else if(c->isabove) return LAYER_ABOVE; - else if(c->isfloating) + else if(c->isfloating || client_isfixed(c)) return LAYER_FLOAT; else if(c->transient_for) return LAYER_TRANSIENT_FOR; @@ -290,6 +290,8 @@ client_layer_translator(client_t *c) return LAYER_ABOVE; case WINDOW_TYPE_DESKTOP: return LAYER_DESKTOP; + case WINDOW_TYPE_DIALOG: + return LAYER_FLOAT; default: return LAYER_TILE; } @@ -362,7 +364,6 @@ client_stack() client_stack_position(node->client, XCB_STACK_MODE_ABOVE, node->client->transient_for->win); - } /** Manage a new client.