[hackers] wmii-3.5: new tip (= 1718)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Sat, 03 Feb 2007 00:40:04 +0100

changeset: 1718:ab927bc5115f
tag: tip
user: Denis Grelich <denisg_AT_suckless.org>
date: Sat Feb 03 00:21:56 2007 +0100
files: client.c
description:
floating windows can now be moved off-screen

changeset: 1717:222b93173000
user: Denis Grelich <denisg_AT_suckless.org>
date: Sat Feb 03 00:18:08 2007 +0100
files: Makefile config.mk
description:
set compile flags to debug and turned off stripping of the executable

diff -r 337580ce8fd2 -r ab927bc5115f Makefile
--- a/Makefile Fri Feb 02 23:58:17 2007 +0100
+++ b/Makefile Sat Feb 03 00:21:56 2007 +0100
@@ -25,7 +25,7 @@ wmiiwm: ${OBJ}
 wmiiwm: ${OBJ}
         @echo LD $@
         @${LD} -o $@ ${OBJ} ${LDFLAGS}
- @strip $@
+# @strip $@
 
 clean:
         @echo cleaning
diff -r 337580ce8fd2 -r ab927bc5115f client.c
--- a/client.c Fri Feb 02 23:58:17 2007 +0100
+++ b/client.c Sat Feb 03 00:21:56 2007 +0100
@@ -465,7 +465,7 @@ resize_client(Client *c, XRectangle *r,
 resize_client(Client *c, XRectangle *r, Bool ignore_xcall) {
         Frame *f = c->sel;
         Bool floating = f->area->floating;
- unsigned int max_height;
+ int max_height;
 
         BlitzAlign stickycorner = 0;
         if(f->rect.x != r->x && f->rect.x + f->rect.width == r->x + r->width)
@@ -491,14 +491,14 @@ resize_client(Client *c, XRectangle *r,
                                         f->rect.height = max_height;
                                 if(f->rect.width > screen->rect.width)
                                         f->rect.width = screen->rect.width;
- if(f->rect.x + f->rect.width > screen->rect.width)
- f->rect.x = screen->rect.width - f->rect.width;
- if(f->rect.y + f->rect.height > max_height)
- f->rect.y = max_height - f->rect.height;
- if(f->rect.x < 0)
- f->rect.x = 0;
- if(f->rect.y < 0)
- f->rect.y = 0;
+ if(f->rect.x + screen->brect.height > screen->rect.width)
+ f->rect.x = screen->rect.width - screen->brect.height;
+ if(f->rect.y + screen->brect.height > max_height)
+ f->rect.y = max_height - screen->brect.height;
+ if(f->rect.x + f->rect.width < screen->brect.height)
+ f->rect.x = screen->brect.height - f->rect.width;
+ if(f->rect.y + f->rect.height < screen->brect.height)
+ f->rect.y = screen->brect.height - f->rect.height;
                         }
                 }
                 if(f->area->view == screen->sel)
diff -r 337580ce8fd2 -r ab927bc5115f config.mk
--- a/config.mk Fri Feb 02 23:58:17 2007 +0100
+++ b/config.mk Sat Feb 03 00:21:56 2007 +0100
@@ -17,10 +17,10 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
 LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -L${PREFIX}/lib -lixp -lm
 
 # flags
-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
-#CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
-#LDFLAGS = -g ${LIBS}
+#CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
+#LDFLAGS = ${LIBS}
+CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
+LDFLAGS = -g ${LIBS}
 
 # Solaris
 #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
Received on Sat Feb 03 2007 - 00:40:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:50 UTC