--- xtoolwait-1.3.orig/xtoolwait.c +++ xtoolwait-1.3/xtoolwait.c @@ -46,6 +46,7 @@ -display display-name\n\ -timeout nseconds\n\ -mappings nwindows\n\ + -withdrawn\n\ -pid\n\ -help\n\ -version\n" @@ -57,6 +58,7 @@ char *programname, *childname; Atom xa_wm_state; int (*prevxerrhandler)(Display *, XErrorEvent *); +int withdrawnok = 0; void timeout(signo) @@ -103,7 +105,7 @@ state = *((CARD32 *) prop); switch ((int) state) { - case WithdrawnState: DPRINTF(("WithdrawnState")); return 0; + case WithdrawnState: DPRINTF(("WithdrawnState")); return withdrawnok; case NormalState: DPRINTF(("NormalState")); return 1; case IconicState: DPRINTF(("IconicState")); return 1; } @@ -208,6 +210,11 @@ continue; } + if (!strcmp(argv[arg], "-withdrawn")) { + withdrawnok = 1; + arg += 1; + continue; + } break; } --- xtoolwait-1.3.orig/xtoolwait.man +++ xtoolwait-1.3/xtoolwait.man @@ -3,7 +3,8 @@ xtoolwait \- start X client and wait for it to map a window .SH SYNOPSIS \fBxtoolwait\fP [ -display \fIdisplay-name\fP ] [ -timeout \fInseconds\fP ] -[ -mappings \fInwindows\fP ] [ -pid ] [ -help ] [ -version ] \fIcommand\fP +[ -mappings \fInwindows\fP ] [ -withdrawn ] [ -pid ] [ -help ] +[ -version ] \fIcommand\fP .SH DESCRIPTION \fBXtoolwait\fP notably decreases the startup time of an X session by reducing the load on the X server and the OS. @@ -29,6 +30,10 @@ will map \fInwindows\fP top-level windows, in which case it will slightly increase the performance. .TP +\fB-withdrawn\fP +Consider windows in Withdrawn state as mapped. This causes the expected +behaviour when starting Window Maker dockapps. +.TP \fB-pid\fP Print the process id (pid) of \fIcommand\fP to standard output. This option is useful for shell scripts that want to wait for (or send a signal to) --- xtoolwait-1.3.orig/debian/rules +++ xtoolwait-1.3/debian/rules @@ -0,0 +1,100 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + xmkmf -a + $(MAKE) + #/usr/bin/docbook-to-man debian/xtoolwait.sgml > xtoolwait.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -f Makefile + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/xtoolwait. + $(MAKE) install DESTDIR=$(CURDIR)/debian/xtoolwait + $(MAKE) install.man DESTDIR=$(CURDIR)/debian/xtoolwait + + +# 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_installchangelogs CHANGES + dh_installdocs +# dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- xtoolwait-1.3.orig/debian/docs +++ xtoolwait-1.3/debian/docs @@ -0,0 +1,2 @@ +README +xtoolwait-1.3.lsm --- xtoolwait-1.3.orig/debian/watch +++ xtoolwait-1.3/debian/watch @@ -0,0 +1,8 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +#sunsite.unc.edu /pub/Linux/Incoming xtoolwait-(.*)\.tar\.gz debian uupdate +http://www.hacom.nl/~richard/software/xtoolwait.html \ + xtoolwait-([\d\.]*).tar.gz --- xtoolwait-1.3.orig/debian/README.Debian +++ xtoolwait-1.3/debian/README.Debian @@ -0,0 +1,2 @@ +The xtoolwait homepage is located at +http://www.hacom.nl/~richard/software/xtoolwait.html --- xtoolwait-1.3.orig/debian/copyright +++ xtoolwait-1.3/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Milan Zamazal on +Thu, 31 Oct 1996 22:43:46 +0100. + +It was downloaded from the homepage at +http://www.hacom.nl/~richard/software/xtoolwait.html + +Copyright: + +Copyright (C) 1995 Richard Huveneers + +This program is covered by the GPL version 2 or (at your option) any +later version. + +See /usr/share/common-licenses/GPL for the full text of the license. --- xtoolwait-1.3.orig/debian/compat +++ xtoolwait-1.3/debian/compat @@ -0,0 +1 @@ +4 --- xtoolwait-1.3.orig/debian/control +++ xtoolwait-1.3/debian/control @@ -0,0 +1,16 @@ +Source: xtoolwait +Section: x11 +Priority: optional +Maintainer: Dwayne C. Litzenberger +Build-Depends: debhelper (>> 4.0.0), libx11-dev, libxext-dev, xutils-dev +Standards-Version: 3.6.1 +Homepage: http://www.hacom.nl/~richard/software/xtoolwait.html + +Package: xtoolwait +Architecture: any +Depends: ${shlibs:Depends} +Description: Allows to start X applications serially + Xtoolwait notably decreases the startup time of your X sessions, + provided that you start a number of X clients automatically during the + X session startup. Xtoolwait starts one X client in the background, + waits until it has mapped a window and then exits. --- xtoolwait-1.3.orig/debian/changelog +++ xtoolwait-1.3/debian/changelog @@ -0,0 +1,156 @@ +xtoolwait (1.3-6.2) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS by replacing obsolete xutils with xutils-dev in + Build-Depends (Closes: #485727). + * Set urgency to “medium” as this bug affects testing too. + * Remove obsolete x-dev from Build-Depends too (Closes: #515444). + * debian/control: Clean up description, move Homepage, remove Author. + + -- Cyril Brulebois Sun, 19 Jul 2009 03:41:38 +0200 + +xtoolwait (1.3-6.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for RC bugfix. + * Drop usr/X11R6/bin from debian/dirs, which is all that's needed for + xtoolwait compatibility with the X11R7 imake. Closes: #364031. + * Remove autogenerated Makefile in the clean target, so it doesn't + clutter the diff. + + -- Steve Langasek Thu, 20 Apr 2006 23:54:50 -0700 + +xtoolwait (1.3-6) unstable; urgency=low + + * Update build-depends for sid. Closes: #346843. + * Update README.Debian to reflect the author's current website and email + address. + + -- Dwayne C. Litzenberger Sun, 8 Jan 2006 20:05:20 -0600 + +xtoolwait (1.3-5) unstable; urgency=low + + * New maintainer. Closes: #192675, #170220. + * Added support for windows in Withdrawn state (e.g. support Window Maker + dockapps). Closes: #142272. + * Updated for Debian Policy 3.6.1 + * Upgraded to debhelper 4 + + -- Dwayne C. Litzenberger Sun, 24 Aug 2003 10:42:17 -0600 + +xtoolwait (1.3-4.1) unstable; urgency=low + + * NMU + * Rebuild to get rid of obsolete dependency on xlib6g. Closes: #170220. + * Add Build-Depends. + + -- Daniel Schepler Fri, 14 Mar 2003 17:39:15 -0800 + +xtoolwait (1.3-4) unstable; urgency=low + + * Fix reference to GPL (lintian) + + -- Martin Bialasinski Sun, 13 Aug 2000 16:46:31 +0200 + +xtoolwait (1.3-3) unstable; urgency=low + + * Policy 3.0.1 + + -- Martin Bialasinski Thu, 16 Sep 1999 18:33:10 +0200 + +xtoolwait (1.3-2) unstable; urgency=low + + * Corrected homepage location + + -- Martin Bialasinski Sun, 1 Aug 1999 16:04:51 +0200 + +xtoolwait (1.3-1) unstable; urgency=low + + * New upstream release + * Closes Bug #36685 + * Added author and Homepage to description + + -- Martin Bialasinski Sat, 31 Jul 1999 20:10:37 +0200 + +xtoolwait (1.2-1) unstable; urgency=low + + * New upstream version. + + -- Martin Bialasinski Tue, 15 Sep 1998 01:23:54 +0200 + +xtoolwait (1.1-8) unstable; urgency=low + + * New Maintainer + * Standards 2.4.1 + * Use debhelper in debian/rules + + -- Martin Bialasinski Thu, 25 Jun 1998 21:22:51 +0200 + +xtoolwait (1.1-7) unstable; urgency=low + + * Use `dh_md5sums'. + * Lintian 0.2.2 satisfied. + + -- Milan Zamazal Wed, 18 Feb 1998 19:15:16 +0100 + +xtoolwait (1.1-6) unstable; urgency=low + + * `checksums' renamed to `md5sums'. + + -- Milan Zamazal Fri, 13 Feb 1998 18:15:09 +0100 + +xtoolwait (1.1-5) unstable; urgency=low + + * FSF address corrected. + * Standards 2.4.0.0. + + -- Milan Zamazal Mon, 9 Feb 1998 21:18:49 +0100 + +xtoolwait (1.1-4) unstable; urgency=low + + * Upstream sources location updated. + * `-isp' flag added to dpkg-gencontrol. + * More error safe `rules'. + * Description synopsis shortened. + * Gzip `changelog.Debian'. + * `CHANGES' renamed to `changelog' and gzipped. + * Standards 2.3.0.1. + + -- Milan Zamazal Mon, 12 Jan 1998 19:43:03 +0100 + +xtoolwait (1.1-3) unstable; urgency=low + + * Compiled with libc6. + * Does not use `debstd' anymore. + + -- Milan Zamazal Tue, 7 Oct 1997 11:10:36 +0200 + +xtoolwait (1.1-2) unstable; urgency=low + + * `changelog.upstream' renamed to `changelog' (Bug #9633). + + -- Milan Zamazal Mon, 12 May 1997 11:12:52 +0200 + +xtoolwait (1.1-1) unstable; urgency=low + + * New upstream version. + + -- Milan Zamazal Mon, 3 Mar 1997 12:49:32 +0100 + +xtoolwait (1.0-2) unstable; urgency=low + + * Architecture field changed from `i386' to `any' (Bug #6440). + * Fixed bad manpage permissions. + * Moved to new standards. + + -- Milan Zamazal Mon, 13 Jan 1997 12:58:32 +0100 + +xtoolwait (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Milan Zamazal Thu, 31 Oct 1996 22:43:46 +0100 + +Local variables: +mode: debian-changelog +End: