--- xwrits-2.21.orig/rest.c +++ xwrits-2.21/rest.c @@ -15,6 +15,12 @@ if (e->type == KeyPress || e->type == MotionNotify || e->type == ButtonPress) { + + // patch to get xwrits to ignore all synthetic events, provided by + // James T Kirk March 2005. + if(e->xany.send_event) // this is a synthetic send_event + return(TRAN_REST); //whatever tran_rest means it ignores the event + xwSUBTIME(diff, *now, last_key_time); last_key_time = *now; --- xwrits-2.21.orig/debian/control +++ xwrits-2.21/debian/control @@ -0,0 +1,19 @@ +Source: xwrits +Section: x11 +Priority: optional +Maintainer: Helen Faulkner +Standards-Version: 3.6.1 +Build-Depends: debhelper (>= 4), perl (>= 5.6), texinfo (>= 4.2-1), libice-dev, libsm-dev, libx11-dev, libxext-dev, xutils (>= 4.2.1-3) + +Package: xwrits +Architecture: any +Depends: ${shlibs:Depends} +Description: reminds you to take a break from typing + xwrits helps you prevent repetitive stress injury. + . + xwrits is a small reminder program designed to let you know it is time + to take a break from typing to rest your wrists and prevent any damage + to your wrists (or at least make them feel better if you've already + damaged them). Normally works on the honor system, but if you find + yourself unable to stop typing during your break, it can also lock your + keyboard. --- xwrits-2.21.orig/debian/copyright +++ xwrits-2.21/debian/copyright @@ -0,0 +1,25 @@ +Xwrits was first packaged by Jay Kominek on Wed, 10 Jun 1998. +The maintenance was taken over by Hugo Haas on Thu, 6 Jul 2000. +The maintenance was taken over by Helen Faulkner on Thu, 5th Aug 2004. + +The source for this package can be downloaded from + http://www.lcdf.org/~eddietwo/xwrits/ + +Upstream Author: Eddie Kohler . + +Copyright: + + Source and pictures copyright 1994-2001 Eddie Kohler: + kohler@icir.org and http://www.icir.org/kohler/ + + This package is distributed under the GNU General Public License, Version + 2, or, at your discretion, any later version. The GNU General Public License + is available via the Web at . The GPL + is designed to allow you to alter and redistribute the package, as long as + you do not deny that freedom to others. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + + --- xwrits-2.21.orig/debian/changelog +++ xwrits-2.21/debian/changelog @@ -0,0 +1,164 @@ +xwrits (2.21-5) unstable; urgency=low + + * Changed rest.c to make xwrits ignore all synthetic events. Patch provided + by James Kirk (closes: #297229). + * New maintainer email address (same maintainer). + + -- Helen Faulkner Mon, 07 Mar 2005 17:03:01 +0000 + +xwrits (2.21-4) unstable; urgency=low + + * Build-depends on xlibs-dev changed to list only required packages. + * Removed unnecessary paragraph about patenting of GIF files from + debian/copyright. + * Changed debian/rules to support support DEB_BUILD_OPTIONS=noopt. + * Removed debian/README.debian, because it contains no information that isn't + also written elsewhere. + + -- Helen Faulkner Sun, 19 Dec 2004 11:03:19 +0000 + +xwrits (2.21-3) unstable; urgency=low + + * New maintainer (closes: Bug#224839). + * Changed debian/copyright file to standardise formatting and include new + upstream website. + * Changed debian/rules to use debhelper compatability version 4. + * Changed debian/control to removed build-depends on automake and autoconf, + since these are not required to build xwrits. + * Changed standards version to 3.6.1. + + -- Helen Faulkner Thu, 05 Aug 2004 13:36:13 +0100 + +xwrits (2.21-2) unstable; urgency=low + + * Updated copyright file (closes: #163700). + * Mentioning RSI in package description (closes: #162577). + + -- Hugo Haas Sun, 12 Jan 2003 12:55:29 -0500 + +xwrits (2.21-1.1) unstable; urgency=low + + * NMU + * Update build-depends to automake1.4. (Closes: #166395) + + -- Eric Dorland Sat, 23 Nov 2002 19:41:00 -0500 + +xwrits (2.21-1) unstable; urgency=low + + * New upstream version. + + -- Hugo Haas Sun, 23 Jun 2002 09:06:00 -0400 + +xwrits (2.20-1) unstable; urgency=low + + * New upstream version. + + -- Hugo Haas Sat, 27 Apr 2002 20:37:42 -0400 + +xwrits (2.19-1) unstable; urgency=low + + * New upstream version. + + -- Hugo Haas Mon, 18 Feb 2002 17:24:55 -0500 + +xwrits (2.18-1) unstable; urgency=low + + * New upstream version. + + -- Hugo Haas Sun, 30 Dec 2001 14:45:42 -0500 + +xwrits (2.17-4) unstable; urgency=low + + * Moved the program out of /usr/X11R6. + * Better clean rule for debian/rules. + + -- Hugo Haas Fri, 28 Dec 2001 18:47:48 -0500 + +xwrits (2.17-3) unstable; urgency=low + + * Adding INSTALL to the list of documentation files wasn't such a + great idea according to Lintian; removed. + + -- Hugo Haas Thu, 20 Dec 2001 20:33:41 -0500 + +xwrits (2.17-2) unstable; urgency=low + + * Declared NEWS as the upstream changelog. + * Added missing documentation: INSTALL and GESTURES. + + -- Hugo Haas Thu, 20 Dec 2001 16:11:14 -0500 + +xwrits (2.17-1) unstable; urgency=low + + * New upstream version. + * Removed user Emacs settings in changelog. + + -- Hugo Haas Wed, 19 Dec 2001 11:23:21 -0500 + +xwrits (2.16-1) unstable; urgency=low + + * New upstream version. + + -- Hugo Haas Sun, 26 Aug 2001 08:08:39 -0400 + +xwrits (2.15-1) unstable; urgency=low + + * New upstream version. + * Bumped standards to 3.5.6.0. + + -- Hugo Haas Wed, 15 Aug 2001 11:52:38 -0400 + +xwrits (2.14-2) unstable; urgency=low + + * Added Build-Depends using dpkg-genbuilddeps by Ben Collins. + + -- Hugo Haas Fri, 30 Mar 2001 22:02:11 -0500 + +xwrits (2.14-1) unstable; urgency=low + + * New maintainer. + * New upstream release. + * Fixes all the bugs - well, they were already fixed in 2.11-0.1. + Closes: #61302, #78846, #79029, #54163, #60336. + * Updated README.Debian and copyright. + + -- Hugo Haas Thu, 29 Mar 2001 19:52:42 -0500 + +xwrits (2.11-0.1) unstable; urgency=low + + * NMU. + * New upstream release. + + -- Hugo Haas Thu, 6 Jul 2000 08:33:29 -0400 + +xwrits (2.8-1) unstable; urgency=low + + * New upstream release + + -- Jay Kominek Wed, 13 Oct 1999 13:57:42 -0600 + +xwrits (2.7) unstable; urgency=low + + * New upstream release + * Fixes bug #46481 + * Switched to DFSG-free license + + -- Jay Kominek Tue, 12 Oct 1999 14:36:32 -0600 + +xwrits (2.6.5-1) unstable; urgency=low + + * New upstream release + + -- Jay Kominek Sat, 31 Oct 1998 13:47:04 -0700 + +xwrits (2.6.2) non-free; urgency=low + + * New upstream release + + -- Jay Kominek Fri, 28 Aug 1998 21:11:39 -0600 + +xwrits (2.6.1) non-free; urgency=low + + * Initial Release. + + -- Jay Kominek Wed, 10 Jun 1998 14:23:37 -0400 --- xwrits-2.21.orig/debian/rules +++ xwrits-2.21/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=4 + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: + dh_testdir + + ./configure --prefix=/usr --mandir=/usr/share/man + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Commands to clean up after the build process. + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) prefix=`pwd`/debian/xwrits/usr mandir=`pwd`/debian/xwrits/usr/share/man install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs README GESTURES + dh_installchangelogs NEWS + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install