This commit is contained in:
Kris Maglione 2008-02-08 21:39:25 -05:00
commit 5bb7a777a8
5 changed files with 17 additions and 14 deletions

View File

@ -97,7 +97,8 @@ client_create(XWindow w, XWindowAttributes *wa) {
c->border = wa->border_width;
c->r.min = Pt(wa->x, wa->y);
c->r.max = addpt(c->r.min, Pt(wa->width, wa->height));
c->r.max = addpt(c->r.min,
Pt(wa->width, wa->height));
c->w.type = WWindow;
c->w.w = w;
@ -193,7 +194,8 @@ client_manage(Client *c) {
bool newgroup = !c->group
|| c->group->ref == 1
|| selclient() && (selclient()->group == c->group)
|| group_leader(c->group) && !client_viewframe(group_leader(c->group), c->sel->view);
|| group_leader(c->group) && !client_viewframe(group_leader(c->group),
c->sel->view);
f = c->sel;
if(!(c->w.ewmh.type & TypeSplash))

View File

@ -88,7 +88,7 @@ float_placeframe(Frame *f) {
return;
*/
if(c->fullscreen || c->w.hints->position || starting) {
f->r = client_grav(c, c->r);
f->r = f->floatr;
return;
}

View File

@ -29,8 +29,8 @@ frame_create(Client *c, View *v) {
if(c->sel) {
f->floatr = c->sel->floatr;
f->r = c->sel->r;
}else{
f->r = client_grav(c, ZR);
}else {
f->r = client_grav(c, c->r);
f->floatr = f->r;
c->sel = f;
}

View File

@ -1,23 +1,24 @@
MKSUBDIR = targ=$@; targ=$${targ\#d}; \
for i in $$dirs; do \
export BASE=$(BASE)$$i/; \
if [ ! -d $$i ]; then \
echo Skipping nonexistent directory: $$i 1>&2; \
else \
echo MAKE $$targ $(BASE)$$i/; \
(cd $$i && $(MAKE) BASE="$(BASE)$$i/" $$targ) || exit $?; \
echo MAKE $$targ $$BASE; \
(cd $$i && $(MAKE) $$targ) || exit $?; \
fi; \
done
dall:
dirs="$(DIRS)"; $(MKSUBDIR)
+dirs="$(DIRS)"; $(MKSUBDIR)
dclean:
dirs="$(DIRS)"; $(MKSUBDIR)
+dirs="$(DIRS)"; $(MKSUBDIR)
dinstall:
dirs="$(INSTDIRS)"; $(MKSUBDIR)
+dirs="$(INSTDIRS)"; $(MKSUBDIR)
duninstall:
dirs="$(INSTDIRS)"; $(MKSUBDIR)
+dirs="$(INSTDIRS)"; $(MKSUBDIR)
ddepend:
dirs="$(DIRS)"; $(MKSUBDIR)
+dirs="$(DIRS)"; $(MKSUBDIR)
all: dall
clean: dclean

View File

@ -36,8 +36,8 @@ all:
$(LINK) $@ $<
.c.O:
${COMPILE} ${<:.c=.o} $<
${LINK} $@ ${<:.c=.o}
$(COMPILE) ${<:.c=.o} $<
$(LINK) $@ ${<:.c=.o}
.sh.O:
echo FILTER $(BASE)$<