[core] Fix ConfigureRequest handling for non-floating windows

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-26 09:52:54 +01:00
parent 981c47835e
commit 3fa15dd272
1 changed files with 7 additions and 1 deletions

View File

@ -185,10 +185,16 @@ event_handle_configurerequest(XEvent * e)
if(geometry.x != c->geometry.x || geometry.y != c->geometry.y
|| geometry.width != c->geometry.width || geometry.height != c->geometry.height)
{
if(c->isfloating)
if(c->isfloating || layout_get_current(c->screen)->arrange == layout_floating)
client_resize(c, geometry, False);
else
{
globalconf.screens[c->screen].need_arrange = True;
/* If we do not resize the client, at least tell it that it
* has its new configuration. That fixes at least
* gnome-terminal */
window_configure(c->win, c->geometry, c->border);
}
}
else
{