This commit is contained in:
Kris Maglione 2007-04-14 03:03:06 -04:00
parent 172ac9ce07
commit 84368de7f3
8 changed files with 19 additions and 12 deletions

View File

@ -5,6 +5,7 @@ include ${ROOT}/mk/wmii.mk
main.c: ${ROOT}/mk/wmii.mk
TARG = wmii
HFILES= dat.h fns.h
LIB = ${LIBIXP}
EXLDFLAGS = -lm ${LIBX11} -lXext

View File

@ -691,7 +691,7 @@ move_client(Client *c, char *arg) {
new.x += x;
new.y += y;
if(!f->area->floating)
resize_column(f->client, &new);
resize_column(f->client->sel, &new);
else
resize_client(f->client, &new);
}
@ -707,7 +707,7 @@ size_client(Client *c, char *arg) {
new.width += w;
new.height += h;
if(!f->area->floating)
resize_column(f->client, &new);
resize_column(f->client->sel, &new);
else
resize_client(f->client, &new);
}

View File

@ -78,8 +78,13 @@ enum {
enum { Coldefault, Colstack, Colmax };
/* Cursor */
enum { CurNormal, CurNECorner, CurNWCorner, CurSECorner, CurSWCorner,
CurDHArrow, CurMove, CurInput, CurInvisible, CurLast };
enum {
CurNormal,
CurNECorner, CurNWCorner, CurSECorner, CurSWCorner,
CurDHArrow, CurMove, CurInput,
CurInvisible,
CurLast
};
enum { NCOL = 16 };
enum { WM_PROTOCOL_DELWIN = 1 };

View File

@ -288,9 +288,7 @@ ingrabbox(Frame *f, int x, int y) {
void
draw_frame(Frame *f) {
BlitzBrush br = { 0 };
XPoint pt[3];
Frame *tf;
int h;
if(f->view != screen->sel)
return;

View File

@ -364,7 +364,7 @@ mouse_resizecol(Divide *d) {
View *v;
Area *a;
uint w, minw;
int x;
int x, y;
v = screen->sel;
@ -376,13 +376,14 @@ mouse_resizecol(Divide *d) {
return;
minw = screen->rect.width/NCOL;
querypointer(blz.root, &x, &y);
x = a->rect.x + minw;
w = r_east(&a->next->rect) - minw;
w -= x;
cwin = XCreateWindow(blz.dpy, blz.root,
x, 0, w, 1,
x, y, w, 1,
/* border */ 0,
/* depth */ CopyFromParent,
/* class */ InputOnly,

View File

@ -3,4 +3,7 @@ include ${ROOT}/mk/hdr.mk
HFILES = ixp.h ixp_fcall.h
install: ${HFILES:.h=.install}
uninstall: ${HFILES:.h=.uninstall}
include ${ROOT}/mk/common.mk

View File

@ -10,9 +10,6 @@ mkdirs:
mkdir -pm 0755 $$i; \
done
install: ${HFILES:.h=.install}
uninstall: ${HFILES:.h=.uninstall}
cleandep:
rm .depend 2>/dev/null || true

View File

@ -17,6 +17,8 @@ oneclean:
rm $$i; \
done 2>/dev/null || true
${OFILES}: ${HFILES}
${PROG}: ${OFILES} ${LIB}
${LINK} $@ ${OFILES} ${LIB}