changeset:   2071:b2b73f1fd3a0
tag:         tip
user:        Kris Maglione <jg_AT_suckless.org>
date:        Sat Apr 14 03:03:06 2007 -0400
summary:     Cleanup.
diff -r c00b8cb1c7f4 -r b2b73f1fd3a0 cmd/wmii/Makefile
--- a/cmd/wmii/Makefile	Sat Apr 14 02:50:31 2007 -0400
+++ b/cmd/wmii/Makefile	Sat Apr 14 03:03:06 2007 -0400
@@ -5,6 +5,7 @@ main.c: ${ROOT}/mk/wmii.mk
 main.c: ${ROOT}/mk/wmii.mk
 
 TARG =	wmii
+HFILES=	dat.h fns.h
 
 LIB =	${LIBIXP}
 EXLDFLAGS = -lm ${LIBX11} -lXext
diff -r c00b8cb1c7f4 -r b2b73f1fd3a0 cmd/wmii/client.c
--- a/cmd/wmii/client.c	Sat Apr 14 02:50:31 2007 -0400
+++ b/cmd/wmii/client.c	Sat Apr 14 03:03:06 2007 -0400
@@ -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);
 }
diff -r c00b8cb1c7f4 -r b2b73f1fd3a0 cmd/wmii/dat.h
--- a/cmd/wmii/dat.h	Sat Apr 14 02:50:31 2007 -0400
+++ b/cmd/wmii/dat.h	Sat Apr 14 03:03:06 2007 -0400
@@ -78,8 +78,13 @@ enum { Coldefault, Colstack, Colmax };
 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 };
diff -r c00b8cb1c7f4 -r b2b73f1fd3a0 cmd/wmii/frame.c
--- a/cmd/wmii/frame.c	Sat Apr 14 02:50:31 2007 -0400
+++ b/cmd/wmii/frame.c	Sat Apr 14 03:03:06 2007 -0400
@@ -288,9 +288,7 @@ void
 void
 draw_frame(Frame *f) {
         BlitzBrush br = { 0 };
-	XPoint pt[3];
         Frame *tf;
-	int h;
 
         if(f->view != screen->sel)
                 return;
diff -r c00b8cb1c7f4 -r b2b73f1fd3a0 cmd/wmii/mouse.c
--- a/cmd/wmii/mouse.c	Sat Apr 14 02:50:31 2007 -0400
+++ b/cmd/wmii/mouse.c	Sat Apr 14 03:03:06 2007 -0400
@@ -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,
diff -r c00b8cb1c7f4 -r b2b73f1fd3a0 include/Makefile
--- a/include/Makefile	Sat Apr 14 02:50:31 2007 -0400
+++ b/include/Makefile	Sat Apr 14 03:03:06 2007 -0400
@@ -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
diff -r c00b8cb1c7f4 -r b2b73f1fd3a0 mk/common.mk
--- a/mk/common.mk	Sat Apr 14 02:50:31 2007 -0400
+++ b/mk/common.mk	Sat Apr 14 03:03:06 2007 -0400
@@ -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
 
diff -r c00b8cb1c7f4 -r b2b73f1fd3a0 mk/one.mk
--- a/mk/one.mk	Sat Apr 14 02:50:31 2007 -0400
+++ b/mk/one.mk	Sat Apr 14 03:03:06 2007 -0400
@@ -17,6 +17,8 @@ oneclean:
                 rm $$i; \
         done 2>/dev/null || true
 
+${OFILES}: ${HFILES}
+
 ${PROG}: ${OFILES} ${LIB}
         ${LINK} $@ ${OFILES} ${LIB}
 
Received on Sat Apr 14 2007 - 09:04:22 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:38 UTC