Fix hole at reload only for tiled client -> fix free client resize at reload

This commit is contained in:
Martin Duquesnoy 2012-02-11 18:27:36 +01:00
parent c8991c84fb
commit d3718da15d
3 changed files with 3 additions and 4 deletions

View File

@ -965,8 +965,6 @@ client_new(Window w, XWindowAttributes *wa, bool scan)
/* Attach */
SLIST_INSERT_HEAD(&W->h.client, c, next);
ewmh_set_wm_state(w, NormalState);
if(!scan)
{
client_get_name(c);

View File

@ -370,7 +370,7 @@ event_mapnotify(XEvent *e)
return;
if((c = client_gb_win(ev->window)))
ewmh_set_wm_state(c->win, NormalState);
client_map(c);
else if((s = systray_find(ev->window)))
{
ewmh_set_wm_state(s->win, NormalState);

View File

@ -346,7 +346,8 @@ wmfs_scan(void)
client_focus(fc);
SLIST_FOREACH(c, &W->h.client, next)
layout_fix_hole(c);
if(c->flags & CLIENT_TILED)
layout_fix_hole(c);
W->flags &= ~WMFS_SCAN;