debian/0000755000000000000000000000000012155626233007173 5ustar debian/watch0000644000000000000000000000010712155626233010222 0ustar version=3 http://www.jfc.org.uk/software/lwm.html .*wm-(\d.+)\.tar\.gz debian/rules0000755000000000000000000000150412155626233010253 0ustar #!/usr/bin/make -f PACKAGE = lwm PKGDIR = $(CURDIR)/debian/$(PACKAGE) SHAREROOTDIR = $(PKGDIR)/usr/share MANROOTDIR = $(SHAREROOTDIR)/man XSESSIONDIR = $(SHAREROOTDIR)/xsessions MAN1DIR = $(SHAREROOTDIR)/man/man1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all CFLAGS += -Wall -D_FILE_OFFSET_BITS=64 LDFLAGS += -Wl,--as-needed cc := $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) override_dh_auto_build: xmkmf # The only place where to inject extra flags $(MAKE) CC="$(cc)" override_dh_auto_install: $(MAKE) DESTDIR=$(PKGDIR) install $(MAKE) DESTDIR=$(PKGDIR) install.man mv --verbose $(MAN1DIR)/lwm.1x $(MAN1DIR)/lwm.1 # Install GDM support install -m 755 -d $(XSESSIONDIR) install -m 644 debian/*.desktop $(XSESSIONDIR) override_dh_installwm: dh_installwm --priority=80 lwm %: dh $@ # End of file debian/changelog0000644000000000000000000001620212155626233011046 0ustar lwm (1.2.2-5) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. - (Standards-Version): Update to 3.9.4. - (Vcs-*): Update to anonscm.debian.org. * debian/copyright - Sync Debian mantainers with debian/copyright. - (Comment): New. Move extra information here. * debian/debian-vars.mk - Delete. No longer needed. * debian/rules - Add install variables form debian-vars.mk. -- Jari Aalto Tue, 11 Jun 2013 16:56:19 +0300 lwm (1.2.2-4) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/rules - Enable all hardening flags. - Use DEB_*_MAINT_* variables. -- Jari Aalto Fri, 23 Mar 2012 12:47:24 -0400 lwm (1.2.2-3) unstable; urgency=low * debian/compat - Update to 9 * debian/control - (Build-Depends): update to debhelper 9, dpkg-dev 1.16.1. - (Standards-Version): Update to 3.9.2. * debian/copyright - Update to DEP5. * debian/patches - (20): Fix code for gcc hardened format specifiers. * debian/rules - Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Mon, 13 Feb 2012 05:22:51 -0500 lwm (1.2.2-2) unstable; urgency=low * debian/compat - Update to 8. * debian/control - (Build-Depends): update to debhelper 8. - (Standards-Version): Update to 3.9.1. * debian/patches - (40): New. Increase target area for close box. Patch thanks to Joey Hess (Closes: #453170). * debian/rules - Simplify rules. - (override_dh_installwm): New. - (override_dh_auto_install): New. - (install): Delete. -- Jari Aalto Tue, 12 Oct 2010 23:54:37 +0300 lwm (1.2.2-1) unstable; urgency=low * New upstream release. * debian/copyright - (Upstream Authors): add note about invalid email. * debian/rules: - (binary): remove binary-indep. -- Jari Aalto Sat, 20 Mar 2010 11:27:27 +0200 lwm (1.2.1-2) unstable; urgency=low * New maintainer (Closes: #572506). - Move to packaging format "3.0 (quilt)". - ACK NMU (Closes: #537321). * debian/clean - New file. * debian/compat: - Update to 7. * debian/control - (Build-Depends): update to debhelper 7.1. - (Description): use neutral tone (Closes: #439572). - (Depends): add ${misc:Depends}, add xterm etc. before virtual x-terminal-emulator. - (Homepage): update to Freshmeat. - (Standards-Version): update to 3.8.4. - (Suggests): new field. * debian/copyright - Update layout. * debian/debian-vars.mk - New file. * debian/lwm.desktop - New file (Closes: #330055). * debian/patches - Convert inline changes to patches. - (Number 05): Link with ICE library (FTBFS minor; Closes: #555571). * debian/rules - Update to dh(1). - (install): Define CC, otherwise the build fails under pbuilder. * debian/source/format - New file. * debian/watch - New file. -- Jari Aalto Tue, 09 Mar 2010 17:16:54 +0200 lwm (1.2.1-1.2) unstable; urgency=low * Non-maintainer upload. * Build-depend on xutils-dev instead of xutils for xmkmf (Closes: #485209). * Build-depend on x11proto-core-dev instead of x-dev (Closes: #515382). * debian/rules: Use $(MAKE) distclean instead of $(MAKE) clean, do not ignore errors. * Set debhelper compat version to 5. * Install man page as "lwm.1.gz". * Mention copyright holder and years of copyright in debian/copyright. * debian/control: Add Homepage field. * debian/control: Bump Standards-Version to 3.8.2. -- Ansgar Burchardt Thu, 16 Jul 2009 21:19:15 +0200 lwm (1.2.1-1.1) unstable; urgency=low * Non-maintainer upload to fix Failure To Build From Source. * Remove extra Depends line. Thanks to Barry deFreese for the patch. Closes: 464296 * debian/menu: + Updated section from "WindowManagers" to "Window Managers" + Updated command from "/usr/bin/X11/lwm" to "/usr/bin/lwm" + Quoted all strings -- Margarita Manterola Wed, 27 Feb 2008 18:13:52 +0000 lwm (1.2.1-1) unstable; urgency=low * New upstream release. Closes: #279410 * Change build-dependency from xlibs-dev to the libs we actually depend on * Reword manpage to clarify the button 3 menu. Closes: #275836 * Move setlocale() call after XCreateFontSet(). Closes: #257251 -- Matthew Wilcox Sat, 26 Feb 2005 21:18:36 -0500 lwm (1.2.0-1) unstable; urgency=low * New upstream release. * Remove lesstif-dev from build-depends since it's no longer needed. -- Matthew Wilcox Tue, 09 Dec 2003 11:34:24 -0500 lwm (1.1.5-1) unstable; urgency=low * New maintainer. Closes: #219063 * New upstream version. Closes: #215194 * New upstream location. Closes: #215193 * Repackage, based on William's work. - Replace the manual page with upstream. - Drop support for /usr/sbin/register-window-manager - Bump priority to 80 (20 base + 20 for menu + 40 for EWMH). - Use debhelper v4. - Don't ship INSTALL -- we already did that bit for you. * Standards-Version 3.6.1 * Somewhere, the patch to use x-terminal-emulator got lost. Reinstate it. * Depend on x-terminal-emulator, we do invoke it after all. -- Matthew Wilcox Wed, 05 Nov 2003 12:33:41 -0500 lwm (1.01-3) unstable; urgency=low * Standards-Version: 3.5.6.1 * Changed ComplexProgramTarget to ComplexProgramTargetNoMan in Imakefile per http://lists.debian.org/debian-devel/2002/debian-devel-200202/msg01206.html (Closes: #141433) * Removed invocation of dh_suidregister * Now invokes dh_installwm per current policy -- William Ono Sun, 14 Apr 2002 20:44:26 -0700 lwm (1.01-2) unstable; urgency=low * Fixed Build-Depends to match woody's package names (Closes: #81188) Specifically, xlib6g-dev was replaced by xutils and xlibs-dev -- William Ono Thu, 4 Jan 2001 04:44:30 -0800 lwm (1.01-1) unstable; urgency=low * New upstream version (Closes: #80171) * Fixed lwm.1x so the section NAME is properly named (Closes: #80393) -- William Ono Wed, 27 Dec 2000 11:39:17 -0800 lwm (1.00-4) unstable; urgency=low * Set Build-Depends in debian/control -- William Ono Sun, 19 Mar 2000 20:00:48 -0800 lwm (1.00-3) unstable; urgency=low * Changed xterm dependence in lwm.h to x-terminal-emulator (Closes: #52977) -- William Ono Tue, 21 Dec 1999 12:54:22 -0800 lwm (1.00-2) unstable; urgency=low * Now has hard-coded reference to x-terminal-emulator instead of xterm (Related to #52977, does not close this bug) * Registers as a window manager with register-window-manager (Closes: #52978) -- William Ono Fri, 17 Dec 1999 17:38:59 -0800 lwm (1.00-1) unstable; urgency=low * Initial Release of Debian package. -- William Ono Fri, 22 Oct 1999 17:55:35 -0700 debian/menu0000644000000000000000000000013112155626233010055 0ustar ?package(lwm):needs="wm" section="Window Managers"\ title="lwm" command="/usr/bin/lwm" debian/patches/0000755000000000000000000000000012155626233010622 5ustar debian/patches/20-lwm.h-terminal.patch0000644000000000000000000000134212155626233014720 0ustar From 3c818f62e30156f70f70cd521ba5eb536f48bc50 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Fri, 5 Mar 2010 11:18:19 +0200 Subject: [PATCH] lwm.h: Change DEFAULT_TERMINAL Signed-off-by: Jari Aalto --- lwm.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lwm.h b/lwm.h index 6b1e47b..7330450 100644 --- a/lwm.h +++ b/lwm.h @@ -21,7 +21,7 @@ #define DEFAULT_TITLE_FONT "-*-lucida-bold-r-normal-sans-14-*-*-*-p-*-iso10646-1" #define DEFAULT_POPUP_FONT "-*-lucida-medium-r-normal-sans-12-*-*-*-p-*-iso10646-1" -#define DEFAULT_TERMINAL "xterm" +#define DEFAULT_TERMINAL "x-terminal-emulator" #define DEFAULT_BORDER 6 #define HIDE_BUTTON Button3 -- 1.7.0 debian/patches/30-lwm.c-locale.patch0000644000000000000000000000124712155626233014344 0ustar From 0fc576e69bc1dcbadacc1e0005c577be50916e3d Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Fri, 5 Mar 2010 11:27:09 +0200 Subject: [PATCH] lwm.c: no hard coded locale Signed-off-by: Jari Aalto --- lwm.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) Index: lwm.git/lwm.c =================================================================== --- lwm.git.orig/lwm.c 2010-03-09 18:34:13.000000000 +0200 +++ lwm.git/lwm.c 2010-03-09 18:34:20.000000000 +0200 @@ -87,8 +87,6 @@ mode = wm_initialising; - setlocale(LC_ALL,""); - /* Open a connection to the X server. */ dpy = XOpenDisplay(NULL); if (dpy == 0) debian/patches/series0000644000000000000000000000024312155626233012036 0ustar 05-Imakefile.patch 10-lwm.man.patch 20-lwm.h-terminal.patch 30-lwm.c-locale.patch 30-lwm.c-locale=31-term.patch 40-disp.c-increase-target-area-for-close-box.patch debian/patches/05-Imakefile.patch0000644000000000000000000000131012155626233013746 0ustar From fedf6be86fb26a2a426955ef93b5e00704632ba7 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Tue, 9 Mar 2010 11:07:50 +0200 Subject: [PATCH] Imakefile: Link with ICE library Signed-off-by: Jari Aalto --- Imakefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Imakefile b/Imakefile index d09498c..71e5a28 100644 --- a/Imakefile +++ b/Imakefile @@ -17,7 +17,7 @@ XCOMM Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA INCLUDES = -I$(TOP) DEPLIBS = $(DEPXLIB) $(DEPSMLIB) -LOCAL_LIBRARIES = $(XLIB) $(SMLIB) +LOCAL_LIBRARIES = $(XLIB) $(SMLIB) -lICE DEFINES = -DSHAPE HEADERS = lwm.h ewmh.h -- 1.7.0 debian/patches/40-disp.c-increase-target-area-for-close-box.patch0000644000000000000000000000443512155626233021710 0ustar From ba751a6ef2f96cee5933b7b6bc27f0b9e32ff9c1 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Tue, 12 Oct 2010 23:46:33 +0300 Subject: [PATCH] disp.c: increase target area for close box Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- disp.c | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/disp.c b/disp.c index 67f2f71..dbf6a71 100644 --- a/disp.c +++ b/disp.c @@ -140,6 +140,11 @@ expose(XEvent * ev) { } } +/* #define in_closing_box(e, quarter) (e->x > (quarter + 2) && e->x < (3 + 3*quarter) && e->y > quarter && e->y <= 3*quarter) */ /* original */ +/* #define in_closing_box(e, quarter) (e->x > (quarter + 1) && e->x < (4 + 3*quarter) && e->y > quarter - 1 && e->y <= 3*quarter + 1) */ /* 2 pixels wider in each dir */ +#define in_closing_box(e, quarter) (e->x > (quarter + 0) && e->x < (5 + 3*quarter) && e->y > quarter - 2 && e->y <= 3*quarter + 2) /* 4 pixels wider in each dir */ + + static void buttonpress(XEvent *ev) { Client *c; @@ -178,7 +183,7 @@ buttonpress(XEvent *ev) { /* The ``box''. */ quarter = (border + titleHeight()) / 4; - if (e->x > (quarter + 2) && e->x < (3 + 3*quarter) && e->y > quarter && e->y <= 3*quarter) { + if (in_closing_box(e, quarter)) { /*Client_Close(c);*/ pending = c; mode = wm_closing_window; @@ -249,10 +254,8 @@ buttonrelease(XEvent *ev) { /* was the button released within the window's box?*/ quarter = (border + titleHeight()) / 4; if (pending != NULL && - (e->window == pending->parent) && - (e->x > (quarter + 2) && - e->x < (3 + 3*quarter) && - e->y > quarter && e->y <= 3*quarter)) + (e->window == pending->parent) && + in_closing_box(e, quarter)) Client_Close(pending); pending = NULL; } else if (mode == wm_hiding_window) { @@ -744,9 +747,7 @@ motionnotify(XEvent *ev) { (e->subwindow != c->window) && mode == wm_idle) { /* mouse moved in a frame we manage - check cursor */ - if (e->x > (quarter + 2) - && e->x < (3 + 3*quarter) - && e->y > quarter && e->y <= 3*quarter) { + if (in_closing_box(e, quarter)) { edge = E_LAST; } else if (e->x <= border && e->y <= border) { edge = ETopLeft; -- 1.7.1 debian/patches/30-lwm.c-locale=31-term.patch0000644000000000000000000000144112155626233015546 0ustar From 77713b317d9d6e00ba8f257f1db95f636fe0e329 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Fri, 5 Mar 2010 11:28:43 +0200 Subject: [PATCH] lwm.c: Use Debian terminal setting Signed-off-by: Jari Aalto --- lwm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lwm.c b/lwm.c index 61298b1..9648d1d 100644 --- a/lwm.c +++ b/lwm.c @@ -299,7 +299,7 @@ shell(ScreenInfo * screen, int button, int x, int y) { execl(sh, sh, "-c", command, NULL); fprintf(stderr, "%s: can't exec \"%s -c %s\"\n", argv0, sh, command); - execlp("xterm", "xterm", NULL); + execlp("x-terminal-emulator", "x-terminal-emulator", NULL); exit(EXIT_FAILURE); case -1: /* Error. */ fprintf(stderr, "%s: couldn't fork\n", argv0); -- 1.7.0 debian/patches/10-lwm.man.patch0000644000000000000000000000172112155626233013433 0ustar From 360cee6df1833b219c8cf5814fbe8da8dd70ecf8 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Fri, 5 Mar 2010 11:16:29 +0200 Subject: [PATCH] my.10-lwm.man: Fix manual Signed-off-by: Jari Aalto --- lwm.man | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lwm.man b/lwm.man index 5a78d2e..99786b3 100644 --- a/lwm.man +++ b/lwm.man @@ -51,8 +51,8 @@ In the default configuration, button 2 on the root window brings up a new shell. .PP A button 3 click on a window frame hides that window. Pressing -button 3 on the root window brings up a menu. The various items unhide -the named hidden window. +button 3 on the root window brings up a menu of all the hidden windows. +Releasing the button while over an item will unhide the named window. .PP A button 3 click in the frame while Shift is held down pushes the window to the back, under any other windows. (Users with 4-button mice are -- 1.7.0 debian/docs0000644000000000000000000000001212155626233010037 0ustar BUGS TODO debian/lwm.desktop0000644000000000000000000000024112155626233011362 0ustar [Desktop Entry] Name=Lwm Comment=Minimalistic window manager Type=Application Terminal=False Exec=/usr/bin/lwm TryExec=lwm [Window Manager] SessionManaged=true debian/source/0000755000000000000000000000000012155626233010473 5ustar debian/source/format0000644000000000000000000000001412155626233011701 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212155626233010371 0ustar 9 debian/copyright0000644000000000000000000000266512155626233011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: Lightweight Window Manager Upstream-Contact: James Carter Source: http://freshmeat.net/projects/lwm Comment: See also http://www.jfc.org.uk/software/lwm.html Files: * Copyright: 1997-2003 James Carter 1997-2003 Elliott Hughes (2010-03-09 Email invalid) License: GPL-2+ Files: debian/* Copyright: 2010, 2013 Jari Aalto 2009 Ansgar Burchardt 2008 Margarita Manterola 2003, 2005 Matthew Wilcox 1999-2002 William Ono License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/control0000644000000000000000000000140712155626233010600 0ustar Source: lwm Section: x11 Priority: optional Maintainer: Jari Aalto Build-Depends: debhelper (>= 9), xutils-dev, x11proto-core-dev, libsm-dev, libx11-dev, libxext-dev Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/lwm.git Vcs-Git: git://anonscm.debian.org/collab-maint/lwm.git Homepage: http://freshmeat.net/projects/lwm Package: lwm Architecture: any Provides: x-window-manager Suggests: fbdesk, idesk Depends: ${shlibs:Depends}, ${misc:Depends}, xterm | urxvt | rxvt | x-terminal-emulator Description: lightweight window manager Low resource Window manager ideal for older PCs. It uses a minimum of external libraries, thus very little memory. It doesn't iclude icons, icon docs, button bars or root menus.