From 2456f6d62a0298caab608aa2d909ef35f90f2310 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 2 Apr 2008 14:48:42 +0200 Subject: [PATCH] [floating] Do not lower windows when going back to tiled Signed-off-by: Julien Danjou --- client.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/client.c b/client.c index 827a682d..eaaae9ff 100644 --- a/client.c +++ b/client.c @@ -576,14 +576,10 @@ client_setfloating(Client *c, Bool floating) client_resize(c, c->f_geometry, False); XRaiseWindow(globalconf.display, c->win); } - else + else if(c->ismax) { - XLowerWindow(globalconf.display, c->win); - if(c->ismax) - { - c->ismax = False; - client_resize(c, c->m_geometry, False); - } + c->ismax = False; + client_resize(c, c->m_geometry, False); } if(client_isvisible(c, c->screen)) globalconf.screens[c->screen].need_arrange = True;