init geometry, and do not need to set need_arrange, setfloating() does it
This commit is contained in:
parent
6e4d13c9dc
commit
c2e6e87bac
3
ewmh.c
3
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue