fix move to screen with floating/non-floating win
This commit is contained in:
parent
d99660e0b8
commit
dd5945cfea
8
screen.c
8
screen.c
|
@ -242,7 +242,15 @@ move_client_to_screen(Client *c, int new_screen, Bool doresize)
|
|||
c->m_geometry.y = to.y + to.height - c->m_geometry.height - 2 * c->border;
|
||||
}
|
||||
|
||||
/* if floating, move to this new coords */
|
||||
if(c->isfloating)
|
||||
client_resize(c, new_f_geometry, False);
|
||||
/* otherwise just register them */
|
||||
else
|
||||
{
|
||||
c->f_geometry = new_f_geometry;
|
||||
arrange(c->screen);
|
||||
}
|
||||
}
|
||||
|
||||
focus(c, True, c->screen);
|
||||
|
|
Loading…
Reference in New Issue