fix move to screen with floating/non-floating win

This commit is contained in:
Julien Danjou 2008-01-06 21:43:19 +01:00
parent d99660e0b8
commit dd5945cfea
1 changed files with 10 additions and 2 deletions

View File

@ -241,8 +241,16 @@ move_client_to_screen(Client *c, int new_screen, Bool doresize)
if(c->m_geometry.y + c->m_geometry.height >= to.y + to.height)
c->m_geometry.y = to.y + to.height - c->m_geometry.height - 2 * c->border;
}
client_resize(c, new_f_geometry, False);
/* 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);