screen: do arrange, even if we do not resize

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-02-07 15:39:35 +01:00
parent ee382dc5a8
commit b294eb990e
1 changed files with 4 additions and 3 deletions

View File

@ -329,6 +329,10 @@ screen_client_moveto(client_t *c, int new_screen, bool dotag, bool doresize)
tag_client(c, new_tags->tab[i]); tag_client(c, new_tags->tab[i]);
} }
if(wasvisible)
globalconf.screens[old_screen].need_arrange = true;
client_need_arrange(c);
if (!doresize) if (!doresize)
return; return;
@ -378,9 +382,6 @@ screen_client_moveto(client_t *c, int new_screen, bool dotag, bool doresize)
} }
/* move / resize the client */ /* move / resize the client */
client_resize(c, new_geometry, false); client_resize(c, new_geometry, false);
if(wasvisible)
globalconf.screens[old_screen].need_arrange = true;
client_need_arrange(c);
} }
/** Screen module. /** Screen module.