commit 1d604f43caa8c11e5776f3dba917dfd4ef2bae67 Author: Juergen Daubert <jue@jue.li> Date: Thu Aug 9 12:26:08 2007 +0200 evilwm: improved maximise behaviour diff --git a/evilwm/.md5sum b/evilwm/.md5sum index 8623438..7767eea 100644 --- a/evilwm/.md5sum +++ b/evilwm/.md5sum @@ -1,2 +1,3 @@ aa66a68f54dda48ff3bcef23ea852e59 evilwm-1.0.0.tar.gz 2c8beeb2ebc6aacb9053c2b6dc796145 evilwm-config.patch +0bbc0b5845909c9ae42f33920b9a5fdb evilwm-maximise.patch diff --git a/evilwm/Pkgfile b/evilwm/Pkgfile index abba6af..4e359e7 100644 --- a/evilwm/Pkgfile +++ b/evilwm/Pkgfile @@ -5,13 +5,14 @@ name=evilwm version=1.0.0 -release=1 +release=2 source=(http://www.6809.org.uk/$name/$name-$version.tar.gz \ - $name-config.patch) + $name-config.patch $name-maximise.patch) build () { cd $name-$version - patch -p1 < ../$name-config.patch + patch -p1 < $SRC/$name-config.patch + patch -p1 < $SRC/$name-maximise.patch make make DESTDIR=$PKG install } diff --git a/evilwm/evilwm-maximise.patch b/evilwm/evilwm-maximise.patch new file mode 100644 index 0000000..b20aeeb --- /dev/null +++ b/evilwm/evilwm-maximise.patch @@ -0,0 +1,25 @@ +diff -Nru evilwm-1.0.0.orig/screen.c evilwm-1.0.0/screen.c +--- evilwm-1.0.0.orig/screen.c 2007-08-09 12:13:46.000000000 +0200 ++++ evilwm-1.0.0/screen.c 2007-08-09 12:11:34.000000000 +0200 +@@ -313,8 +313,8 @@ + } else { + c->oldx = c->x; + c->oldw = c->width; +- c->x = 0; +- c->width = DisplayWidth(dpy, c->screen->screen); ++ c->x = 1; ++ c->width = DisplayWidth(dpy, c->screen->screen) - 2; + } + } + if (hv & MAXIMISE_VERT) { +@@ -325,8 +325,8 @@ + } else { + c->oldy = c->y; + c->oldh = c->height; +- c->y = 0; +- c->height = DisplayHeight(dpy, c->screen->screen); ++ c->y = 1; ++ c->height = DisplayHeight(dpy, c->screen->screen) - 2; + } + } + moveresize(c);