Enhance configurerequest handling a bit

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-24 14:37:57 +01:00
parent 3310b974b4
commit 2045c811e2
1 changed files with 3 additions and 7 deletions

10
event.c
View File

@ -185,13 +185,9 @@ 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)
{
old_screen = c->screen;
client_resize(c, geometry, False);
tag_client_with_rule(c, rule_matching_client(c));
if(!c->isfloating)
if(c->isfloating)
client_resize(c, geometry, False);
else
globalconf.screens[c->screen].need_arrange = True;
}
else