reparent only on manage_client and destroy_client ;)

This commit is contained in:
Anselm R. Garbe 2006-03-13 10:09:37 +01:00
parent 85ec4d7480
commit 45e1326481
3 changed files with 3 additions and 2 deletions

View File

@ -321,6 +321,8 @@ manage_client(Client *c)
else else
match_tags(c); match_tags(c);
reparent_client(c, c->framewin, c->rect.x, c->rect.y);
t = ntag ? tag[sel] : alloc_tag(def.tag); t = ntag ? tag[sel] : alloc_tag(def.tag);
if(c->tags[0] == 0) if(c->tags[0] == 0)
cext_strlcpy(c->tags, t->name, sizeof(c->tags)); cext_strlcpy(c->tags, t->name, sizeof(c->tags));

View File

@ -295,7 +295,6 @@ attach_totag(Tag *t, Client *c)
else else
a = t->area[t->sel]; a = t->area[t->sel];
reparent_client(c, c->framewin, c->rect.x, c->rect.y);
attach_toarea(a, c); attach_toarea(a, c);
map_client(c); map_client(c);
XMapWindow(dpy, c->framewin); XMapWindow(dpy, c->framewin);

View File

@ -8,7 +8,7 @@ MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib X11LIB = /usr/X11R6/lib
VERSION = 3-current VERSION = 20060313
# includes and libs # includes and libs
LIBS = -L${PREFIX}/lib -L/usr/lib -lc -lm -L${X11LIB} -lX11 LIBS = -L${PREFIX}/lib -L/usr/lib -lc -lm -L${X11LIB} -lX11