From 3fa15dd272773252e001b23cee0d6378594dac9d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 26 Mar 2008 09:52:54 +0100 Subject: [PATCH] [core] Fix ConfigureRequest handling for non-floating windows Signed-off-by: Julien Danjou --- event.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/event.c b/event.c index e01c6ce4..f5a24aaf 100644 --- a/event.c +++ b/event.c @@ -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 {