From c2e6e87bacb11a751ee77e6cb5d37bb33fd29768 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 18 Jan 2008 08:39:30 +0100 Subject: [PATCH] init geometry, and do not need to set need_arrange, setfloating() does it --- ewmh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ewmh.c b/ewmh.c index da97882e..5bd044ee 100644 --- a/ewmh.c +++ b/ewmh.c @@ -252,7 +252,7 @@ ewmh_process_state_atom(Client *c, Atom state, int set) } else if(state == net_wm_state_fullscreen) { - Area geometry; + Area geometry = c->geometry; if(set == _NET_WM_STATE_REMOVE) { /* restore geometry */ @@ -275,7 +275,6 @@ ewmh_process_state_atom(Client *c, Atom state, int set) widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); client_resize(c, geometry, False); XRaiseWindow(globalconf.display, c->win); - globalconf.screens[c->screen].need_arrange = True; } }