From dd5945cfeaef55309af6d67f2f68b82ad789495d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 6 Jan 2008 21:43:19 +0100 Subject: [PATCH] fix move to screen with floating/non-floating win --- screen.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/screen.c b/screen.c index dd4ba276..1a9f2cab 100644 --- a/screen.c +++ b/screen.c @@ -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);