mirror of https://github.com/0intro/wmii
Merge.
This commit is contained in:
commit
5bb7a777a8
|
@ -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))
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
15
mk/dir.mk
15
mk/dir.mk
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue