init geometry, and do not need to set need_arrange, setfloating() does it

This commit is contained in:
Julien Danjou 2008-01-18 08:39:30 +01:00
parent 6e4d13c9dc
commit c2e6e87bac
1 changed files with 1 additions and 2 deletions

3
ewmh.c
View File

@ -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;
}
}