screen: only untag if client had a screen
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d4e6411971
commit
69fa11af8f
3
screen.c
3
screen.c
|
@ -273,7 +273,8 @@ screen_client_moveto(client_t *c, screen_t *new_screen, bool doresize)
|
|||
if(c->titlebar)
|
||||
c->titlebar->screen = new_screen;
|
||||
|
||||
/* remove old tags */
|
||||
/* If client was on a screen, remove old tags */
|
||||
if(old_screen)
|
||||
foreach(old_tag, old_screen->tags)
|
||||
untag_client(c, *old_tag);
|
||||
|
||||
|
|
Loading…
Reference in New Issue