Fix geo set at reload

This commit is contained in:
Martin Duquesnoy 2011-11-03 12:11:29 +01:00
parent e2e43fcf89
commit 3d2b04ba6b
3 changed files with 4 additions and 11 deletions

View File

@ -604,8 +604,7 @@ client_update_props(struct client *c, Flags f)
XChangeProperty(W->dpy, c->win, ATOM("_WMFS_GEO"), XA_CARDINAL, 32,
PropModeReplace, (unsigned char*)g, 4);
putchar(' ');
DGEO(c->geo);
}
}

View File

@ -80,7 +80,8 @@ tag_client(struct tag *t, struct client *c)
if(c->tag == t)
return;
layout_split_arrange_closed(c);
if(!(c->flags & CLIENT_IGNORE_LAYOUT))
layout_split_arrange_closed(c);
SLIST_REMOVE(&c->tag->clients, c, client, tnext);

View File

@ -239,7 +239,6 @@ wmfs_scan(void)
g.w = ret[2];
g.h = ret[3];
DGEO(g);
XFree(ret);
}
@ -258,19 +257,12 @@ wmfs_scan(void)
tag_client(t, c);
client_moveresize(c, &g);
client_get_name(c);
/*client_focus(c);*/
break;
}
}
}
}
/*SLIST_FOREACH(c, &W->h.client, next)
client_moveresize(c, &c->tgeo);
SLIST_FOREACH(c, &W->h.client, next)
layout_fix_hole(c);*/
XFree(w);
}
@ -341,6 +333,7 @@ wmfs_quit(void)
{
c = SLIST_FIRST(&W->h.client);
client_update_props(c, CPROP_LOC | CPROP_FLAG | CPROP_GEO);
c->flags |= CLIENT_IGNORE_LAYOUT;
client_remove(c);
}