client: register floating geom if it comes from floating

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-15 14:15:45 +01:00
parent 2e49d7554d
commit d6964c2052
1 changed files with 2 additions and 1 deletions

View File

@ -583,7 +583,8 @@ client_resize(client_t *c, area_t geometry, bool hints)
/* save the floating geometry if the window is floating but not
* maximized */
if(c->ismoving || client_isfloating(c)
|| layout_get_current(new_screen) == layout_floating)
|| layout_get_current(new_screen) == layout_floating
|| layout_get_current(c->screen) == layout_floating)
if(!c->isfullscreen)
c->f_geometry = geometry;