--- ctwm-3.7.orig/workmgr.c +++ ctwm-3.7/workmgr.c @@ -901,7 +901,11 @@ if (twm_win->iconmgr) return; if (! Scr->TransientHasOccupation) { if (twm_win->transient) return; - if ((twm_win->group != (Window) 0) && (twm_win->group != twm_win->w)) return; + /* + * The following is commented out because it prevents, e.g., + * Mozilla windows from occupying different workspaces. + */ + /* if ((twm_win->group != (Window) 0) && (twm_win->group != twm_win->w)) return; */ } for (ws = Scr->workSpaceMgr.workSpaceList; ws != NULL; ws = ws->next) { Window obuttonw = Scr->workSpaceMgr.occupyWindow->obuttonw [ws->number]; --- ctwm-3.7.orig/menus.c +++ ctwm-3.7/menus.c @@ -1461,7 +1461,7 @@ ws = NULL; - if (! (all || allicons) && CurrentSelectedWorkspace) { + if (! (all || allicons) && CurrentSelectedWorkspace && Scr->workSpaceManagerActive) { for (ws = Scr->workSpaceMgr.workSpaceList; ws != NULL; ws = ws->next) { if (strcmp (ws->name, CurrentSelectedWorkspace) == 0) break; } --- ctwm-3.7.orig/Imakefile.local +++ ctwm-3.7/Imakefile.local @@ -0,0 +1,130 @@ +XCOMM This is the local configuration file for Imakefile for ctwm. +XCOMM +XCOMM Some of the things you can define also come with make variables that +XCOMM can be manipulated. All such variables have names starting with\ +XCOMM USER_. + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Use IMCONV features. +XCOMM Uhmm, I really don't know what this is about. -- Richard Levitte +XCOMM +XCOMM The make variables USER_IMCONVLIBDIR and USER_IMCONVINCDIR can be +XCOMM used to configure library search paths and include file search paths +XCOMM to find the imconv libraries and header files. +XCOMM +XCOMM Example: +XCOMM +XCOMM #define IMCONV +XCOMM USER_IMCONVLIBDIR = -L/logiciels/public/graphix/lib +XCOMM USER_IMCONVINCDIR = -I/logiciels/public/graphix/include +XCOMM +#undef IMCONV + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Use sounds +XCOMM If you want sound support through librplay, defined USE_SOUND. +XCOMM +XCOMM The make variables USER_SOUNDLIBDIR and USER_SOUNDINCDIR can be +XCOMM used to configure library search paths and include file search paths +XCOMM to find the rplay libraries and header files. +XCOMM +XCOMM Example: +XCOMM +XCOMM #define USE_SOUND +XCOMM USER_SOUNDLIBDIR = -L/usr/local/lib +XCOMM USER_SOUNDINCDIR = -I/usr/local/include +XCOMM +XCOMM Debian: We don't need to use USER_SOUNDLIBDIR or USER_SOUNDINCDIR +XCOMM because rplay's shared object and headers are installed in standard +XCOMM system locations. +#define USE_SOUND + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Use XPM images +XCOMM If you want XPM support, define XPM. +XCOMM +XCOMM The make variables USER_XPMLIBDIR and USER_XPMINCDIR can be +XCOMM used to configure library search paths and include file search paths +XCOMM to find the rplay libraries and header files. +XCOMM +XCOMM Example: +XCOMM +XCOMM #define XPM +XCOMM USER_XPMLIBDIR = -L/usr/local/lib +XCOMM USER_XPMINCDIR = -I/usr/local/include +XCOMM +#define XPM + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Use Jpeg images +XCOMM If you want JPEG support, define JPEG. +XCOMM +XCOMM The make variables USER_JPEGLIBDIR and USER_JPEGINCDIR can be +XCOMM used to configure library search paths and include file search paths +XCOMM to find the rplay libraries and header files. +XCOMM +XCOMM Example: +XCOMM +XCOMM #define JPEG +XCOMM USER_JPEGLIBDIR = -L/usr/local/lib +XCOMM USER_JPEGINCDIR = -I/usr/local/include +XCOMM +#define JPEG + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Using M4 to process the ctwm configuration file +XCOMM If you want to process the ctwm configuration file with m4, define +XCOMM USE_M4. +XCOMM +#define USE_M4 + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Support for Gnome extensions +XCOMM If you want to build with Gnome extensions, define GNOME. +XCOMM +#define GNOME + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Use session management features +XCOMM If you want to use X11R6 session management, define USE_SESSION. +XCOMM +#define USE_SESSION + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: I18n support +XCOMM If you want to build with i18n support, define I18N. +XCOMM +#define I18N + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Use GNU regex +XCOMM If you want to build with GNU regex instead of the internal regex +XCOMM functions, define USE_GNU_REGEX. +XCOMM +XCOMM Debian: We enable this. +#define USE_GNU_REGEX + +XCOMM DEBUGGING: + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: General debugging +XCOMM If you want to get all kinds of debugging output from CTWM, define +XCOMM DEBUG. +XCOMM +#undef DEBUG + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Debug the parser +XCOMM If you want debugging output for the configuration file parser, +XCOMM define DEBUGPARSER +XCOMM +#undef DEBUGPARSER + +XCOMM ---------------------------------------------------------------------- +XCOMM Feature: Compile with lots and lots of warnings +XCOMM If you use gcc, and want to build with as much paranoia as possible, +XCOMM define GCC_PEDANTIC. +XCOMM Quite honestly, I would recommend for you not to use it for now. +XCOMM You'll just start running and screaming :-). -- Richard Levitte +XCOMM +#undef GCC_PEDANTIC --- ctwm-3.7.orig/Imakefile +++ ctwm-3.7/Imakefile @@ -1,9 +1,8 @@ XCOMM $XConsortium: Imakefile,v 1.33 91/07/17 00:48:06 gildea Exp $ XCOMM -XCOMM Here is an Imakefile for twm. It depends on having TWMDIR defined -XCOMM in Imake.tmpl. I like to use Imakefiles for everything, and I am sure -XCOMM other people do also, so perhaps you could do us all a favor and -XCOMM distribute this one. +XCOMM Here is an Imakefile for twm. I like to use Imakefiles for +XCOMM everything, and I am sure other people do also, so perhaps you could +XCOMM do us all a favor and distribute this one. XCOMM #include "Imakefile.local" @@ -134,8 +133,8 @@ -aux-info $@.info #endif -PIXMAPDIR = $(TWMDIR)/images -CONFDIR = $(TWMDIR) +PIXMAPDIR = $(INCDIR)/X11/pixmaps +CTWMCONFDIR = $(CONFDIR)/ctwm LOCAL_LIBRARIES = $(M4LIB) $(IMCONVLIB) $(XPMLIB) $(JPEGLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(SOUNDLIB) DEFINES = $(SIGNAL_DEFINES) $(M4DEFINES) $(GNOMEDEFINES) $(IMCONVDEFINES) $(XPMDEFINES) $(JPEGDEFINES) $(SESSIONDEFINES) $(SOUNDDEFINES) $(I18NDEFINES) $(DEBUGPARSERDEFINES) $(GNUREGEXDEFS) @@ -181,7 +180,7 @@ 3dcircle.xpm 3ddimple.xpm 3ddot.xpm 3dfeet.xpm 3dleopard.xpm \ 3dpie.xpm 3dpyramid.xpm 3dslant.xpm -SpecialObjectRule(parse.o,parse.c,'-DSYSTEM_INIT_FILE="$(DESTDIR)$(CONFDIR)/system.ctwmrc"' '-DPIXMAP_DIRECTORY="$(DESTDIR)$(PIXMAPDIR)"') +SpecialObjectRule(parse.o,parse.c,'-DSYSTEM_INIT_FILE="$(DESTDIR)$(CTWMCONFDIR)/system.ctwmrc"' '-DPIXMAP_DIRECTORY="$(DESTDIR)$(PIXMAPDIR)"') SpecialObjectRule(ctwm.o,ctwm.c,'-DPIXMAP_DIRECTORY="$(DESTDIR)$(PIXMAPDIR)"') #if !HasPutenv SpecialObjectRule(util.o,util.c,-DNOPUTENV) @@ -191,7 +190,7 @@ NormalLibraryTarget(ctwm, libctwm.o) ComplexProgramTarget(ctwm) -InstallNonExecFile(system.ctwmrc,$(CONFDIR)) +InstallNonExecFile(system.ctwmrc,$(CTWMCONFDIR)) #ifdef XPM install:: MakeDir($(DESTDIR)$(PIXMAPDIR)) --- ctwm-3.7.orig/ctwm.c +++ ctwm-3.7/ctwm.c @@ -116,7 +116,8 @@ # include # endif /* X11R6 */ -# ifdef I18N +/* Version 2 and later of the GNU C library are locale-aware. */ +# if defined(I18N) && (!defined(__GLIBC__) || (__GLIBC__ < 2)) # include # else # ifndef NO_LOCALE @@ -136,12 +137,13 @@ # include # endif /* X11R6 */ -# ifdef I18N +/* Version 2 and later of the GNU C library are locale-aware. */ +# if defined(I18N) && (!defined(__GLIBC__) || (__GLIBC__ < 2)) # include # else -# ifndef NO_LOCALE -# include -# endif /* NO_LOCALE */ +# ifndef NO_LOCALE +# include +# endif /* NO_LOCALE */ # endif # ifndef PIXMAP_DIRECTORY @@ -1373,12 +1375,17 @@ if (captive) RemoveFromCaptiveList (); XCloseDisplay(dpy); - fprintf (stderr, "\nCongratulations, you have found a bug in ctwm\n"); - fprintf (stderr, "If a core file was generated in your directory,\n"); - fprintf (stderr, "can you please try extract the stack trace,\n"); - fprintf (stderr, "and mail the results, and a description of what you were doing,\n"); - fprintf (stderr, "to ctwm-bugs@free.lp.se. Thank you for your support.\n"); - fprintf (stderr, "...exiting ctwm now.\n\n"); + fprintf (stderr, +"\nCongratulations; you have found a bug in CTWM.\n" +"\nIf a core file was generated in the current working directory, please try\n" +"to extract the stack trace, and mail the results along with a description of\n" +"what you were going, to . Thank you for your support.\n" +"\nYou may also wish to file a bug against the \"ctwm\" package with the\n" +"Debian Bug Tracking System. Please use the \"reportbug\" command from the\n" +"\"reportbug\" package to do so; even if you cannot locate a core file or\n" +"include a stack trace, much valuable information will be automatically\n" +"collected and reported to the Debian developers.\n" +"\nExiting CTWM now.\n\n"); abort (); } --- ctwm-3.7.orig/system.ctwmrc +++ ctwm-3.7/system.ctwmrc @@ -17,7 +17,7 @@ ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" -IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*" +IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" ShowWorkSpaceManager # start with workspace manager up UseThreeDMenus UseThreeDTitles @@ -28,51 +28,41 @@ WorkSpaceManagerGeometry "360x60+60-0" 4 WorkSpaces { - "One" {"#686B9F" "white" "DeepSkyBlue3" "white" "xpm:background8.xpm"} - "Two" {"#619AAE" "white" "firebrick" "white" "plaid"} - "Three" {"#727786" "white" "brown"} - "Four" {"#8C5b7A" "white" "MidnightBlue"} - - "Five" {"#727786" "white" "firebrick"} - "Six" {"#619AAE" "white" "DeepSkyBlue3"} - "Seven" {"#8C5b7A" "white" "chartreuse4"} - "Eight" {"#686B9F" "white" "MidnightBlue"} -} - -Color -{ - BorderColor "Red" - DefaultBackground "blue" - DefaultForeground "gray85" - BorderTileBackground "DeepSkyBlue1" { - "xterm" "DeepSkyBlue3" - } - BorderTileForeground "Black" { - "xterm" "DeepSkyBlue3" - } - TitleBackground "DeepSkyBlue1" { - "xterm" "DeepSkyBlue3" - } - TitleForeground "Black" { - "xterm" "White" - } - MenuBackground "#686B9F" - MenuForeground "white" - MenuTitleBackground "gray70" - MenuTitleForeground "White" - IconBackground "LightSlateBlue" - IconForeground "White" - IconBorderColor "gray85" - IconManagerBackground "DeepSkyBlue1" {"Axe" "DeepSkyBlue3" "xload" "DeepSkyBlue2"} - IconManagerForeground "Black" - MapWindowBackground "DeepSkyBlue1" { - "root*" "Red" - "xterm" "DeepSkyBlue3" - "Axe" "Yellow" - } - MapWindowForeground "Black" { - "xterm" "White" - } + "One" {"rgb:0/6/6" "rgb:f/f/f" "rgb:0/6/6" "rgb:f/f/f"} + "Two" {"rgb:4/4/6" "rgb:f/f/f" "rgb:4/4/6" "rgb:f/f/f"} + "Three" {"rgb:6/4/4" "rgb:f/f/f" "rgb:6/4/4" "rgb:f/f/f"} + "Four" {"rgb:6/6/6" "rgb:f/f/f" "rgb:6/6/6" "rgb:f/f/f"} + "Five" {"rgb:0/4/4" "rgb:f/f/f" "rgb:0/4/4" "rgb:f/f/f"} + "Six" {"rgb:2/2/4" "rgb:f/f/f" "rgb:2/2/4" "rgb:f/f/f"} + "Seven" {"rgb:4/2/2" "rgb:f/f/f" "rgb:4/2/2" "rgb:f/f/f"} + "Eight" {"rgb:4/4/4" "rgb:f/f/f" "rgb:4/4/4" "rgb:f/f/f"} +} + +Color { + BorderColor "rgb:0/0/8" + DefaultBackground "rgb:0/8/0" + DefaultForeground "rgb:e/e/e" + BorderTileBackground "rgb:0/8/8" + BorderTileForeground "rgb:0/0/0" + TitleBackground "rgb:0/b/b" + TitleForeground "rgb:0/0/f" + MenuBackground "rgb:f/f/0" + MenuForeground "rgb:0/0/f" + MenuTitleBackground "rgb:b/0/0" + MenuTitleForeground "rgb:b/b/0" + IconBackground "rgb:0/b/b" + IconForeground "rgb:f/f/f" + IconBorderColor "rgb:d/d/d" + IconManagerBackground "rgb:0/8/8" + IconManagerForeground "rgb:0/f/f" + MapWindowBackground "rgb:8/8/8" + MapWindowForeground "rgb:0/0/0" +} + +IconManagerDontShow { # do not display these windows in the icon manager +} + +NoTitle { # do not place a title bar on these windows } IconManagerGeometry "202x300-0+0" 1 @@ -80,10 +70,9 @@ "WorkSpaceManager" } -NoTitle { # little programs that look like icons - "TWM Icon Manager" - "WorkSpaceManager" +AutoRaise { # automatically raise these windows } + # # Define some useful functions for motion-based actions. # @@ -117,64 +106,62 @@ # # And a menus with the usual things # -menu "defops" -{ - "Twm" f.title - "Xterm" !"xterm&" - "Calculator" !"xcalc&" - "Xman" !"xman &" - "Xmag" !"xmag&" - "" f.nop - "Restart" f.restart - "Exit" f.quit +menu "defops" { + "Main Menu" f.title + "Debian" f.menu "/Debian" + "" f.separator + "Show Icon Manager" f.showiconmgr + "Hide Icon Manager" f.hideiconmgr + "" f.separator + "Show WorkSpace Manager" f.showworkspacemgr + "Hide WorkSpace Manager" f.hideworkspacemgr + "" f.separator + "Refresh screen" f.refresh + "" f.separator + "Exit" f.menu "Quit-Verify" +} + +menu "Quit-Verify" { + "Really quit ctwm?" f.title + "No, restart ctwm" f.restart + "Yes, really quit" f.quit } menu "windowops" { - "Windows" f.title - "Occupy" f.occupy - "Occupy All" f.occupyall - "Iconify" f.iconify - "Refresh" f.refresh - "Vanish" f.vanish - "Info" f.identify - "" f.separator - "Resize" f.resize - "Move" f.move - "Adopt Window" f.adoptwindow - "Animate" f.startanimation - "Don't animate" f.stopanimation - "" f.separator - "Send Delete" f.delete - "Kill Window" f.destroy - "Pin menu" f.pin -} - -menu "windowmenu" { - "Occupy ..." f.occupy - "Occupy All" f.occupyall - "Iconify" f.iconify - "RaiseLower" f.raiselower - "Refresh" f.winrefresh - "Zoom" f.menu "Zoom" - "Vanish" f.vanish - "Focus" f.focus - "Unfocus" f.unfocus - "" f.separator - "Send Delete" f.delete - "Kill Window" f.destroy - "Resize..." f.resize - "Move..." f.move -} - -menu "iconmenu" { - "Actions" f.title - "" f.separator - "Restore" f.iconify - "Move" f.move - "Occupy ..." f.occupy - "Occupy All" f.occupyall - "" f.separator - "Send Delete" f.delete - "Kill Window" f.destroy + "Window Ops" f.title + "Occupy..." f.occupy + "Occupy All" f.occupyall + "Vanish" f.vanish + "" f.separator + "(De)Iconify" f.iconify + "Refresh" f.winrefresh + "Info..." f.identify + "" f.separator + "Resize" f.resize + "(Un)Squeeze" f.squeeze + "Zoom" f.menu "zoomops" + "" f.separator + "Move" f.move + "Pack move" f.movepack + "Push move" f.movepush + "" f.separator + "Restart animations" f.startanimation + "Freeze animations" f.stopanimation + "" f.separator + "Close" f.delete + "Kill" f.destroy +} + +menu "zoomops" { + "Zoom Ops" f.title + "Full zoom" f.fullzoom + "Horizontal zoom" f.horizoom + "Vertical zoom" f.zoom + "Top zoom" f.topzoom + "Bottom zoom" f.bottomzoom + "Left zoom" f.leftzoom + "Right zoom" f.rightzoom } +undivert(`/etc/X11/ctwm/menudefs.hook') + --- ctwm-3.7.orig/readme.vms +++ ctwm-3.7/readme.vms @@ -0,0 +1,123 @@ +To compile and install ctwm on VMS machines: + +Unpacking and configuration: +---------------------------- + +0) You must have the X miscellaneous utilities and X extension libraries. + Possibly, also have some unix type tools such as tar and gzip + (get these from ftp.spc.edu in macros32/savesets). + +1) Get the latest xpm library (at time of writing, 3.4) and compile that + first. This is used for coloured icons. (There should be many sites that + have a copy of xpm, try using Archie to find a site near you.) + +2) Copy the xpm.h file from the xpm distribution to the ctwm source directory. + +3) Edit the make.com or descrip.mms file to change x11xmu, x11xmulib, + x11lib and EXIT_ENDSESSION logicals or symbols to point to your own set-up. + + About EXIT_ENDSESSION, see warning W1 below. + +Compilation and linking: +------------------------ + +4) IF YOU DOWNLOADED A PACKAGE WITH OBJECT FILES, you only need to link + ctwm, doing "@link.com". Then go to step 7). + +5) You do not need to rename the files with _VMS extensions any more. + +6) compile ctwm, either with make.com by doing "@make", or with descrip.mms + by doing "mms/ign=w". + +[ N.B.: WHEN LINKING object files that have been compiled with VAX C + (*.VAX_VAXC_OBJ), the linker may complain about two undefined symbols. + They are however not refered to anywhere, so this is completelly harmless. + The two symbols are COLORCONVERTARGS and SCREENCONVERTARG. + /Richard Levitte ] + +[ N.B.2: The resulting executable will have the name CTWM.VAX_EXE or + CTWM.AXP_EXE! This because you may want to compile or link for both + architectures in the same directory. /Richard Levitte ] + +Installation: +------------- + +7) When ctwm has been successfully built, work out where to put the xpm + icons, say disk$users:[joe.xpm]. Edit the file ctwm.com and change it to + suit you. + +8) Create your user config file ctwm.rc and put it in DECW$USER_DEFAULTS. + Now is the time to read the man page on ctwm. Be sure to read vms.txt for + differences between the Unix ctwm and the VMS version. + (See peterc.ctwmrc or levitte_system.ctwmrc, for an example config file.) + +9) [Optional] Create your own system default config file system.ctwmrc + and put it in DECW$SYSTEM_DEFAULTS. + +10) Go to the session manager and under the Options menu pick out the + "Menus..." item. Make a menu item called "CT Window Manager" and enter the + DCL command "@disk$users:[joe.com]ctwm.com", as an example. + +11) Go to the session manager, again, and under the Options menu pick out + the "Automatic Startup..." item. Take out your current window manager + and replace it with ctwm using the "CT Window Manager" item you just + created. + +12) Now all is done. Exit from the session and log back in to try out ctwm. + + +WARNINGS: +--------- + +W1) [THIS APPLIES ON VAX ONLY!] + + It seems like some older DECwindows/Motif versions end their session + like this: + + %decw$endsession -vueimage sys$system:.exe + + this is an internal Session Manager command. If this is how it's + done on your machine, you'd better not use the session ending features + of ctwm at all, or you won't get back a login prompt when you end + your session. In such a case, EXIT_ENDSESSION must be set to 0, or + you may get into trouble. + +W2) Bitmap (xbm) files are sometimes stored in files with no extensions + on older Unix X11 releases, which makes definitions like this work + on those ("plaid" is the culprit here): + + WorkSpaces { + "One" {"#619AAE" "white" "firebrick" "white" "plaid"} + } + + Since those files have never been stored without extension on VMS, + you have to rewrite such definitions like this: + + WorkSpaces { + "One" {"#619AAE" "white" "firebrick" "white" "plaid.xbm"} + } + + I has been discussed if you couldn't add a "dna=.xbm" parameter to + the open() or fopen() that opens the bitmap file. This would of + course have been possible, if the loading of bitmap files wasn't + done through the function XmuLocateBitmapFile(). Of course, you + could as well hack ExpandFilename(), but that is less clean. The + Xmu library needs to be enhanced for this task. + + +Ctwm 3.3 ported by Peter Chang - peterc@v2.ph.man.ac.uk 4/5/94. +Ctwm 3.4pl2 and 3.5 further ported by Richard Levitte + + +Thank you: +---------- + +A thank you goes to the following people: + + Claude Lecommandeur , for making ctwm + to begin with. + Peter Chang , for the previous ports. + + Michael Lemke + +/Richard Levitte, --- ctwm-3.7.orig/example.man +++ ctwm-3.7/example.man @@ -0,0 +1,63 @@ +.TH ctwm __mansuffix__ "Version 3.6" "Claude Lecommandeur" +.SH NAME +ctwm \- Claude's Tab Window Manager for the X Window System +.SH SYNOPSIS +\fBctwm \fP[\-display \fIdpy\fP] [\-s] [\-f \fIinitfile\fP] [\-v] [\-n] [\-k] +[\-K \fIm4file\fP] [\-w [\fIwin\-id\fP]] +.SH DESCRIPTION +\fIctwm\fP is a window manager for the X Window System. It provides +titlebars, shaped windows, virtual screens (workspaces), +several forms of icon management, user\-defined macro functions, +click\-to\-type and pointer\-driven keyboard focus, and user\-specified +key and pointer button bindings. It is actually +\fItwm\fP(__mansuffix__) (Tab Window Manager) from the MIT X11 distribution +slightly modified to accommodate the use of several virtual screens +(workspaces). It is heavily inspired from the Hewlett\-Packard vuewm window +manager. In addition, \fIctwm\fP can use coloured, shaped icons and +background root pixmaps in XPM format [from Arnaud Le Hors], any format +understood by the imconv package [from the San Diego Supercomputer Center] +and xwd files. \fIctwm\fP can be compiled to use both, either or none of +the above icon/pixmap formats. +.IP "\fBBorderColor\fP \fIstring\fP [{ \fIwincolorlist\fP }]" +This variable specifies the default color of the border to be placed around +all non\-iconified windows, and may only be given within a \fBColor\fP or +\fBMonochrome\fP list. The optional \fIwincolorlist\fP specifies a list of +window and color name pairs for specifying particular border colors for +different types of windows. For example: +.RS +.nf +\fBBorderColor\fP "gray50" +{ + "XTerm" "red" + "xmh" "green" +} +.fi +The default is \(oqblack\(cq. +.RE +.IP "\fBBorderLeft\fP \fIpixels\fP" +This variable specifies the width in pixels of a forbidden zone at the +left of the screen. All constrained window function (f.movepack, +f.move with DontMoveOff, etc...) will use consider this zone as offscreen. +Default is 0; +.SH "ENVIRONMENT VARIABLES" +.IP "DISPLAY" +This variable is used to determine which X server to use. It is also set +during \fBf.exec\fP so that programs come up on the proper screen. +.IP "HOME" +This variable is used as the prefix for files that begin with a tilde and +for locating the \fIctwm\fP startup file. +.SH "SEE ALSO" +.IR X (__mansuffix__), +.IR Xserver (__mansuffix__), +.IR xdm (__mansuffix__), +.IR xrdb (__mansuffix__). +.SH COPYRIGHT +Portions copyright 1988 Evans & Sutherland Computer Corporation; portions +copyright 1989 Hewlett\-Packard Company and the Massachusetts Institute of +Technology, See \fIX(__mansuffix__)\fP for a full statement of rights and +permissions. +.SH AUTHORS +Tom LaStrange, Solbourne Computer; Jim Fulton, MIT X Consortium; +Steve Pitschke, Stardent Computer; Keith Packard, MIT X Consortium; +Dave Sternlicht, MIT X Consortium; Dave Payne, Apple Computer. +Claude Lecommandeur, Swiss Polytechnical Institute of Lausanne (lecom@sic.epfl.ch). --- ctwm-3.7.orig/debian/prerm +++ ctwm-3.7/debian/prerm @@ -0,0 +1,23 @@ +#!/bin/sh +# Debian ctwm package pre-removal script +# Copyright 1999, 2001 Branden Robinson. +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or . + +set -e + +trap "echo ;\ + echo 'Received signal. Aborting removal of ctwm package.' ;\ + echo ;\ + exit 1" 1 2 3 15 + +case "$1" in + upgrade|failed-upgrade) ;; + remove|deconfigure) + update-alternatives --remove x-window-manager /usr/bin/ctwm + ;; +esac + +#DEBHELPER# + +exit --- ctwm-3.7.orig/debian/changelog +++ ctwm-3.7/debian/changelog @@ -0,0 +1,436 @@ +ctwm (3.7-3.3) unstable; urgency=low + + * Non-maintainer upload. + * Correctly remove the x-window-manager alternative on package removal. + (Closes: #668449) + + -- Andreas Beckmann Wed, 30 Jan 2013 15:35:21 +0100 + +ctwm (3.7-3.2) unstable; urgency=low + + * Non-maintainer upload. + * Build-depend on libjpeg-dev, not libjpeg62-dev (closes: #641105) + + -- Julien Cristau Sun, 29 Jan 2012 16:49:16 +0100 + +ctwm (3.7-3.1) unstable; urgency=low + + [Jari Aalto] + * Non-maintainer upload. + * debian/control + - (Build-Depends): update obsolete x-dev to x11proto-core-dev. + (important RC bug; Closes: #515492). + * debian/rules + - (build-stamp): Define CC before call to xmkmf(1). + + -- Jari Aalto Sat, 27 Mar 2010 14:57:01 +0200 + +ctwm (3.7-3) unstable; urgency=low + + * Merge Luk Claes's NMU. Thanks, Luk! Luk's changes are: + + Make ctwm pre-depend on x11-common (>= 1:7.0.0). + + Correct comment in the menu-method file. + + I reverted Luk's deletion of the SVN Id keyword and Vim modeline in this + changelog. (We finally got a comment character for control files, now + we need one for changelogs as well. Lesson? Never, ever, ever, ever + make a file format that will be machine-parsed by anything without + supporting comments. ALGOL 60 called and wants its innovations back.) + * I had already done the following in SVN but was too slow to release. + Shame on me. + + Build-depend on xutils-dev instead of xutils for the X11R7 transition. + + Adjust debian/rules and debian/postinst to use FHS paths, moving from + /usr/X11R6 to /usr. Based on a patch by Steve Langasek. Thanks, Steve! + (Closes: #364239) + + Point menu-method to install-menu interpreter in /usr/bin, not + /usr/sbin, per Lintian. + + Add empty binary-indep target in debian/rules to quiet Lintian error. + * Fix SEGV when attempting to bring up the TwmWindows menu when no workspace + manager is active. Thanks to Mike O'Connor for the analysis and the + patch! (Closes: #375240) + * Bump Standards-Version from 3.6.2 to 3.7.2; required changes involving + placement of files in X11 paths and pre-dependency on x11-common made as + described above. + + -- Branden Robinson Fri, 21 Jul 2006 10:27:56 -0400 + +ctwm (3.7-2.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for RC bugfix. + * Build-depend against xutils-dev for the X11R7 transition, pre-depend on + a recent x11-common and adjust debian/rules for the FHS paths + (Closes: #364239). + + -- Luk Claes Fri, 12 May 2006 22:35:26 +0200 + +ctwm (3.7-2) unstable; urgency=low + + * Add build-dependency on libjpeg62-dev to fix FTBFS. Shame on me for not + building in a clean chroot. + + -- Branden Robinson Wed, 2 Nov 2005 15:00:00 -0500 + +ctwm (3.7-1) unstable; urgency=low + + * Merge upstream 3.7 release. + + The upstream maintainer is now Richard Levitte, not Claude Lecommandeur. + + Add workspace context for keybindings. + + Add AlwaysSqueezeToGravity configuration keyword and feature. + + Add TwmKeys and TwmVisible menus. + + Implement preliminary GNOME compliance (see README.gnome and TODO.gnome + in /usr/share/doc/ctwm.) + + Add IconifyStyle configuration keyword and feature for "fancy" graphical + effects. + + Add JPEG/JFIF image support, using "jpeg:filename" syntax. + + Add f.showbackground action, which unmaps all windows in the current + workspace. + + Add preliminary support for Xinerama extension using the VirtualScreens + configuration keyword. + + Change Imakefile to support a distribution target. + + Change :xpm:cross to be a bit larger, appear more three-dimensional, and + be more visible even in very dark configurations. + + Make AlwaysSqueezeToGravity work for all windows if no window list is + given. + + Add NoImagesInWorkSpaceManager configuration keyword and feature which + prevents background images from being displayed in the workspace map. + + Add -cfgchk command-line option, which simply performs a parse check on + the configuration file, without launching the window manager. + + Change the behavior of DontMoveOff/MoveOffResistance (see upstream + changelog). + + Change behavior of random placement to respect DontMoveOff (see upstream + changelog). + + Change f.warpring action so that the icon manager doesn't get enter and + leave events if IconManagerFocus is set. + + Add f.movetoprevworkspace, f.movetonextworkspace, + f.movetoprevworkspaceandfollow, and f.movetonextworkspaceandfollow + actions (see upstream changelog). + + Add "vertical" as a parameter to the f.fill action (see upstream + changelog). + + Add hack to ensure that a window that had been maximized keeps the focus + when it is restored to its previous size. + + Fix f.zoom action to stop moving the window up. + + Add IgnoreTransient configuration keyword and feature to ignore a + specified list of transient windows. + + Optimize workspace switch performance by preventing redraws of windows + that occupy all workspaces when switching workspaces. + + Make ctwm aware of the "mysterious GTK+ group leader" windows. + + Fix BorderResizeCursors to work for top and left borders when + non-3D-borders are used. + + Stop GetWMPropertyString() from leaking memory. + + Fix bug in f.warpring action where the pointer would be moved to the + right and end up outside the title bar. + + Fix bug in f.warpring action where if the active window was closed and + the cursor ended up in the root window, it wouldn't move until moved + with a pointer motion event. + + Add NoWarpToMenuTitle configuration keyword to keep the cursor from + warping to the menu title if the menu won't fit on the screen below the + current cursor position. + + Initialize Scr->workSpaceMgr.windowFont. + + Add support for full GNU regular expressions in window and class names + by defining USE_GNU_REGEX in the Imakefile (disabled by default). + + Add DontToggleWorkSpaceManagerState configuration keyword to turn off + the feature which toggles the workspace manager state between map and + button when the control key is pressed and the workspace manager window + is in focus. + + Add a TWMAllIcons menu, which lists all iconified windows on all + workspaces. + + Add f.changesize action, which allows you to change the size of the + focused window bia menus and key bindings. + + Fix focus problems with f.changesize action and add ability to set a new + fixed window size. + + Update email address used for upstream bug reports when ctwm crashes. + + Convert all K&R function headers to use ANSI C prototypes. + + Only use the DefaultFunction if no function was found. + + Modify random placement algorithm when DontMoveOff is set (see upstream + changelog). + + Fix bug where resizing windows from the menu when not using 3D borders + would move the target window down and right by a border width. + + Enhance info window to include the outer geometry and 3D border width. + + Rework SIGHUP handler to set a global flag and have CtwmNextEvent() + react to it by calling DoRestart(). [BR: I think this is how W. Richard + Stevens and other Unix gurus have been telling people how to write + signal handlers for years...] + + Improve portability to VMS. + + Support GCC_PEDANTIC Imakefile variable, which turns on all kinds of + paranoid CCOPTIONS (off by default). + + Fix .ctwm-sounds file parser to permit spaces embedded in sound file + names, and trip spaces from the beginning and end of file names and + event tokens. + + Add a ctwm.spec file for RPM building. + + Pass PIXMAP_DIRECTORY, IMCONV, GNOME, SOUNDS, SESSION, and I18N + variables to m4. + + Document the sound feature in the manual page. + + Add "rpm" target to Imakefile to enable building an RPM package directly + from a distribution tarball. + + Make library locations configurable through use of USER_* Make + variables (see Imakefile.local-template in source package). + + Make configuration easier on VMS by moving configuration definitions to + descrip.local-template. + + Update upstream maintainer's email address. + + Note that the gnu-emacs[1-7].xpm files formerly shipped in + /usr/X11R6/include/X11/pixmaps/ are no longer in this package, having + been dropped upstream. + + * Update Debian copyright file to reflect new upstream source and + maintainer. + + * debian/rules: Add README.gnome and TODO.gnome as arguments to + dh_installdocs. + + * Move Debian customizations of Imakefile to Imakefile.local since most of + them have been rendered unncessary by upstream. Only two configuration + differences from upstream remain; switch on USE_SOUND (rplay) and + USE_GNU_REGEX. + + * Drop patch to gram.y; upstream has fixed the parsing problems with GNU + Bison 1.50 and later. + + * Forward-port patch to ctwm.c to use locale.h instead of Xlocale.h for + locale functions if the version 2 or later of the GNU C library is in use. + + * Drop patch that prevents random placement of windows with explicit + geometry (merged upstream). + + * Change default system.ctwmrc to restore upstream default placement of + workspace manager. Track upstream change to location of icon manager + geometry definition and remove the workspace manager from the list of + windows in the icon manager. + + * Revert Debian changes to the manpage for the time being, as it will be + very time-consuming to merge them with the extensive upstream revisions. + + * debian/rules: Create the build-stamp file in a more idiomatic way. + + * Modify upstream Imakefile to rename CONFDIR variable to CTWMCONFDIR (since + CONFDIR in already used by X11.tmpl), and define the values of PIXMAPDIR + and CTWMCONFDIR to conform to Debian conventions. (This doesn't actually + change the locations of any unpacked files.) + + * Update Debian rules file to stop passing now-uneeded symbol definitions to + make, stop moving files that are now installed to the correct locations my + the upstream install rule, and update a comment to reflect a package name + change (fvwm-common -> fvwm-icons). + + * Re-indent some Debian changelog entries from 1999 to shut up Lintian + warnings. + + * Move pre-1999 Debian changelog entries to changelog.Debian.old to quiet + Lintian warnings about their format (which was legal, or at least far more + slackly enforced, back then). + + * Bump Standards-Version from 3.6.1 to 3.6.2. No changes necessary. + + * Rework logic passing flags to the C compiler in the Debian rules file. + Use and export CFLAGS instead of messing with CDEBUGFLAGS, since the + upstream Imakefile uses CDEBUGFLAGS for its own purposes. Always switch + on -g, and set the optimization level per Debian Policy section 10.1. + + * Update examples. Ship lynx.ctwmrc.m4 as-is instead of pre-processing it + with m4, so that we actually provide an example of a startup file that + uses m4. Remove build-dependency on m4. Ship the new system.ctwmrc.gnome + file as an example of how to make CTWM work with GNOME. + + * Update ctwm's crash handler to include instructions on how to report bugs + to the Debian Bug Tracking System (leaving the existing text requesting + reports upstream intact modulus some grammar edits). + + -- Branden Robinson Wed, 2 Nov 2005 13:03:57 -0500 + +ctwm (3.6-2) unstable; urgency=low + + * Fix typo in copyright file. + * Define I18N symbol in Imakefile per request by Alexander Mikhailian. + (Closes: #250905) + * Permit non-transient windows in the same group (e.g., Mozilla browser + windows) to occupy different workspaces (thanks, Arun A. Tharuvai). + (Closes: #234782) + * Don't randomly place windows that have an explicit geometry (thanks, + Terran Melconian). (Closes: #224348) + * Remove redundant AllTarget(ctwm) rule from Imakefile; this is already + handled by ComplexProgramTarget(ctwm). + * Enable preprocessing of manpage by using undocumented(!) -D option to + xmkmf. + * Replace hash character with "XCOMM" in manpage so the preprocessor doesn't + get confused. + * Quote all parameter values in menu file; shuts up lintian warnings. + * Update build-dependencies to reflect (XFree86) X library package split. + * Increment Standards-Version to 3.6.1; no changes needed. + * Resynchronize menu-method file with twm's (see #193759). + + -- Branden Robinson Fri, 18 Jun 2004 23:21:26 -0500 + +ctwm (3.6-1) unstable; urgency=medium + + * New upstream version (includes xpm directory inadvertently omitted in + upstream release). + * Fixes Bison-related FTBFS problem, hence medium severity. + * ctwm.man: many roff cleanups and minor edits + * gram.y: fix syntax problems that choke GNU Bison 1.50 (based on patch from + Matt Kraai) (Closes: #167063) + * debian/conffiles: deleted; debhelper handles this + * debian/control: increment Standards-Version to 3.5.8 (no changes) + * debian/copyright: updated + * debian/patches: resynced and re-generated + + -- Branden Robinson Sat, 23 Nov 2002 19:03:17 -0500 + +ctwm (3.5.2-7) unstable; urgency=low + + * debian/rules: + - eliminate new null binary-indep rule; Policy doesn't require it unless + binary-indep packages are built -- none are by this package + - cosmetic changes, mostly for consistency with my other packages + + -- Branden Robinson Thu, 3 Oct 2002 01:44:21 -0500 + +ctwm (3.5.2-6) unstable; urgency=low + + * Get right with Policy version 3.5.7. + * debian/control: + - increment versioned build-dependency on debhelper to (>= 4.0) + - increment Standards-Version to 3.5.7 + * debian/rules: + - use debhelper version 4 compatibility + - support "noopt" flag in DEB_BUILD_OPTIONS + - clean up paths in install rule + - write null rule for "binary-indep" target + + -- Branden Robinson Wed, 2 Oct 2002 00:44:22 -0500 + +ctwm (3.5.2-5) unstable; urgency=low + + * debian/patches: change sinclude() to undivert() so m4 and the menu system + get along again (Thanks, Bill Allombert and Mark Eichin) (Closes: #117533) + + -- Branden Robinson Sat, 23 Feb 2002 15:31:31 -0500 + +ctwm (3.5.2-4) unstable; urgency=low + + * debian/prerm: update-alternatives should only be called on remove or + deconfigure + + -- Branden Robinson Thu, 22 Feb 2001 22:25:44 -0500 + +ctwm (3.5.2-3) unstable; urgency=low + + * debian/control: + - add xutils to build dependencies (Closes: #86984) + - change build dependency on xlib6g-dev and libxpm4-dev to xlibs-dev + - bumped Standards-Version to 3.5.2 (already compliant) + + -- Branden Robinson Thu, 22 Feb 2001 12:36:10 -0500 + +ctwm (3.5.2-2) unstable; urgency=low + + * Roman Hodek spoon-feeds me another missing build dependency (on + debhelper). (Closes: #69108) + + -- Branden Robinson Mon, 14 Aug 2000 21:47:31 -0500 + +ctwm (3.5.2-1) unstable; urgency=low + + * new upstream version (3.5.1 and this version were missed for a long + time because I didn't know where ctwm's official home was) (Closes: + #68992) + * resynchronized Debian patches + * debian/copyright: rewritten + + -- Branden Robinson Sat, 12 Aug 2000 01:32:49 -0500 + +ctwm (3.5-17) unstable; urgency=low + + * debian/control: I stupidly left out a build-dependency on librplay3-dev; + thanks again to Roman Hodek (Closes: #54362) + * debian/menu-method: remove redundant escaping from text function + + -- Branden Robinson Wed, 12 Jan 2000 23:21:56 -0500 + +ctwm (3.5-16) unstable; urgency=low + + * Imakefile: + - define USE_SOUND; activates rplay sound support + - define X11R6; activates ICE session management + * debian/control: + - added bison and m4 to Build-Depends (thanks, Roman Hodek) + + -- Branden Robinson Sat, 8 Jan 2000 16:29:18 -0500 + +ctwm (3.5-15) unstable; urgency=low + + * correct menu-method with respect to menu entries with embedded quotes + + -- Branden Robinson Thu, 6 Jan 2000 13:27:13 -0500 + +ctwm (3.5-14) unstable; urgency=low + + * made compliant with Standards Version 3.1.1 + * made compliant with new proposed X Window System policies + * debian/control: + - added Build-Depends + - Provides: x-window-manager + * debian/postinst: stepped alternative priority down to 40 + + -- Branden Robinson Fri, 31 Dec 1999 12:09:28 -0500 + +ctwm (3.5-13) unstable; urgency=low + + * debian/postinst: whack /etc/X11/ctwm on purge (Closes: #49209) + + -- Branden Robinson Sat, 6 Nov 1999 02:43:04 -0500 + +ctwm (3.5-12) unstable; urgency=low + + * Forced new source upload, something went wonky. + * Updated copyright file again. + * Updated package description. + * debian/menu-method: + - clarified comment + - removed "pin menu" item from end of all generated menus + * system.ctwmrc: extensive changes + + -- Branden Robinson Tue, 2 Nov 1999 21:09:01 -0500 + +ctwm (3.5-11) unstable; urgency=low + + * Converted to debhelper. + * Updated copyright file. + * debian/rules: + - totally rewritten to use debhelper + - turn I18N define back on + * Ship upstream changelog, PROBLEMS, and README files. + * Fully supports Debian menu system. + + -- Branden Robinson Sat, 30 Oct 1999 03:56:18 -0400 + +ctwm (3.5-10) unstable; urgency=low + + * Edit extended description again (better explanation of package name) + * Ship /etc/menu-methods/ctwm with execute bits on (the postinst chmodded + it anyway, but...) + * Lintian 1.2-1 seal of approval. + + -- Branden Robinson Tue, 20 Apr 1999 14:58:56 -0400 + +ctwm (3.5-9) unstable; urgency=low + + * New maintainer + * Updated and expanded copyright file + * Bumped Standards-Version to 2.5.0 + * Rewrote extended description + * Rewrote postinst + * Rewrote postrm + * Register menu entry (as well as existing menu-method) + * Ship additional example file levitte.ctwmrc (in /usr/doc/ctwm/examples) + * Install pixmaps to /usr/X11R6/include/X11/pixmaps instead of + /usr/X11R6/lib/X11/twm/images + * Uncomment and change PixmapDirectory in example file lynx.ctwmrc to + /usr/include/X11/pixmaps/ + * Comment out IconDirectory in example file lynx.ctwmrc + * Don't compile with -fno-strength-reduce and -fomit-frame-pointer anymore + * A few other cosmetic tweaks invisible to the binary package + * Imakefile: change PIXMAP_DIRECTORY to /usr/include/X11/pixmaps + + -- Branden Robinson Tue, 20 Apr 1999 03:41:06 -0400 + + $Id: changelog 72 2006-07-21 14:29:22Z branden $ + vim:set ai et sw=2 ts=2 tw=78: --- ctwm-3.7.orig/debian/TODO +++ ctwm-3.7/debian/TODO @@ -0,0 +1,38 @@ +$Id: TODO 59 2006-04-23 02:08:51Z branden $ + +* Switch to dh_installman. + +* fix splash screen so it works in depths other than 8 + +* See if GetWMPropertyString() memory leak needs to be ported up to + freedesktop.org twm. +* See if resizing down/right bug is the same (very old) one that affects + vtwm. + +--- gram.y~ 2005-06-21 00:35:19.000000000 -0500 ++++ gram.y 2005-11-01 23:08:54.899134593 -0500 +@@ -433,6 +433,7 @@ + wingeom_list + | VIRTUAL_SCREENS { } + geom_list ++ ; + + noarg : KEYWORD { if (!do_single_keyword ($1)) { + twmrc_error_prefix(); +@@ -851,7 +852,7 @@ + occupy_workspc_entry : string { + AddToClientsList ($1, client); + } +- ; ++ ; + + occupy_window_list : LB occupy_window_entries RB {} + ; +@@ -863,6 +864,7 @@ + occupy_window_entry : string { + AddToClientsList (workspace, $1); + } ++ ; + + icon_list : LB icon_entries RB {} + ; --- ctwm-3.7.orig/debian/patches +++ ctwm-3.7/debian/patches @@ -0,0 +1,343 @@ +--- Imakefile 2005-07-19 01:47:32.000000000 -0500 ++++ Imakefile 2005-11-02 10:58:42.059900793 -0500 +@@ -1,9 +1,8 @@ + XCOMM $XConsortium: Imakefile,v 1.33 91/07/17 00:48:06 gildea Exp $ + XCOMM +-XCOMM Here is an Imakefile for twm. It depends on having TWMDIR defined +-XCOMM in Imake.tmpl. I like to use Imakefiles for everything, and I am sure +-XCOMM other people do also, so perhaps you could do us all a favor and +-XCOMM distribute this one. ++XCOMM Here is an Imakefile for twm. I like to use Imakefiles for ++XCOMM everything, and I am sure other people do also, so perhaps you could ++XCOMM do us all a favor and distribute this one. + XCOMM + + #include "Imakefile.local" +@@ -134,8 +133,8 @@ + -aux-info $@.info + #endif + +-PIXMAPDIR = $(TWMDIR)/images +-CONFDIR = $(TWMDIR) ++PIXMAPDIR = $(INCDIR)/X11/pixmaps ++CTWMCONFDIR = $(CONFDIR)/ctwm + + LOCAL_LIBRARIES = $(M4LIB) $(IMCONVLIB) $(XPMLIB) $(JPEGLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) $(SOUNDLIB) + DEFINES = $(SIGNAL_DEFINES) $(M4DEFINES) $(GNOMEDEFINES) $(IMCONVDEFINES) $(XPMDEFINES) $(JPEGDEFINES) $(SESSIONDEFINES) $(SOUNDDEFINES) $(I18NDEFINES) $(DEBUGPARSERDEFINES) $(GNUREGEXDEFS) +@@ -181,7 +180,7 @@ + 3dcircle.xpm 3ddimple.xpm 3ddot.xpm 3dfeet.xpm 3dleopard.xpm \ + 3dpie.xpm 3dpyramid.xpm 3dslant.xpm + +-SpecialObjectRule(parse.o,parse.c,'-DSYSTEM_INIT_FILE="$(DESTDIR)$(CONFDIR)/system.ctwmrc"' '-DPIXMAP_DIRECTORY="$(DESTDIR)$(PIXMAPDIR)"') ++SpecialObjectRule(parse.o,parse.c,'-DSYSTEM_INIT_FILE="$(DESTDIR)$(CTWMCONFDIR)/system.ctwmrc"' '-DPIXMAP_DIRECTORY="$(DESTDIR)$(PIXMAPDIR)"') + SpecialObjectRule(ctwm.o,ctwm.c,'-DPIXMAP_DIRECTORY="$(DESTDIR)$(PIXMAPDIR)"') + #if !HasPutenv + SpecialObjectRule(util.o,util.c,-DNOPUTENV) +@@ -191,7 +190,7 @@ + + NormalLibraryTarget(ctwm, libctwm.o) + ComplexProgramTarget(ctwm) +-InstallNonExecFile(system.ctwmrc,$(CONFDIR)) ++InstallNonExecFile(system.ctwmrc,$(CTWMCONFDIR)) + #ifdef XPM + install:: + MakeDir($(DESTDIR)$(PIXMAPDIR)) +--- ctwm.c 2005-06-21 00:35:18.000000000 -0500 ++++ ctwm.c 2005-11-02 13:02:45.738433288 -0500 +@@ -116,7 +116,8 @@ + # include + # endif /* X11R6 */ + +-# ifdef I18N ++/* Version 2 and later of the GNU C library are locale-aware. */ ++# if defined(I18N) && (!defined(__GLIBC__) || (__GLIBC__ < 2)) + # include + # else + # ifndef NO_LOCALE +@@ -136,12 +137,13 @@ + # include + # endif /* X11R6 */ + +-# ifdef I18N ++/* Version 2 and later of the GNU C library are locale-aware. */ ++# if defined(I18N) && (!defined(__GLIBC__) || (__GLIBC__ < 2)) + # include + # else +-# ifndef NO_LOCALE +-# include +-# endif /* NO_LOCALE */ ++# ifndef NO_LOCALE ++# include ++# endif /* NO_LOCALE */ + # endif + + # ifndef PIXMAP_DIRECTORY +@@ -1373,12 +1375,17 @@ + if (captive) RemoveFromCaptiveList (); + XCloseDisplay(dpy); + +- fprintf (stderr, "\nCongratulations, you have found a bug in ctwm\n"); +- fprintf (stderr, "If a core file was generated in your directory,\n"); +- fprintf (stderr, "can you please try extract the stack trace,\n"); +- fprintf (stderr, "and mail the results, and a description of what you were doing,\n"); +- fprintf (stderr, "to ctwm-bugs@free.lp.se. Thank you for your support.\n"); +- fprintf (stderr, "...exiting ctwm now.\n\n"); ++ fprintf (stderr, ++"\nCongratulations; you have found a bug in CTWM.\n" ++"\nIf a core file was generated in the current working directory, please try\n" ++"to extract the stack trace, and mail the results along with a description of\n" ++"what you were going, to . Thank you for your support.\n" ++"\nYou may also wish to file a bug against the \"ctwm\" package with the\n" ++"Debian Bug Tracking System. Please use the \"reportbug\" command from the\n" ++"\"reportbug\" package to do so; even if you cannot locate a core file or\n" ++"include a stack trace, much valuable information will be automatically\n" ++"collected and reported to the Debian developers.\n" ++"\nExiting CTWM now.\n\n"); + + abort (); + } +--- system.ctwmrc 2005-06-21 00:35:19.000000000 -0500 ++++ system.ctwmrc 2005-11-01 23:40:00.490141467 -0500 +@@ -17,7 +17,7 @@ + ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" + MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" + IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" +-IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*" ++IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" + ShowWorkSpaceManager # start with workspace manager up + UseThreeDMenus + UseThreeDTitles +@@ -28,51 +28,41 @@ + + WorkSpaceManagerGeometry "360x60+60-0" 4 + WorkSpaces { +- "One" {"#686B9F" "white" "DeepSkyBlue3" "white" "xpm:background8.xpm"} +- "Two" {"#619AAE" "white" "firebrick" "white" "plaid"} +- "Three" {"#727786" "white" "brown"} +- "Four" {"#8C5b7A" "white" "MidnightBlue"} +- +- "Five" {"#727786" "white" "firebrick"} +- "Six" {"#619AAE" "white" "DeepSkyBlue3"} +- "Seven" {"#8C5b7A" "white" "chartreuse4"} +- "Eight" {"#686B9F" "white" "MidnightBlue"} +-} +- +-Color +-{ +- BorderColor "Red" +- DefaultBackground "blue" +- DefaultForeground "gray85" +- BorderTileBackground "DeepSkyBlue1" { +- "xterm" "DeepSkyBlue3" +- } +- BorderTileForeground "Black" { +- "xterm" "DeepSkyBlue3" +- } +- TitleBackground "DeepSkyBlue1" { +- "xterm" "DeepSkyBlue3" +- } +- TitleForeground "Black" { +- "xterm" "White" +- } +- MenuBackground "#686B9F" +- MenuForeground "white" +- MenuTitleBackground "gray70" +- MenuTitleForeground "White" +- IconBackground "LightSlateBlue" +- IconForeground "White" +- IconBorderColor "gray85" +- IconManagerBackground "DeepSkyBlue1" {"Axe" "DeepSkyBlue3" "xload" "DeepSkyBlue2"} +- IconManagerForeground "Black" +- MapWindowBackground "DeepSkyBlue1" { +- "root*" "Red" +- "xterm" "DeepSkyBlue3" +- "Axe" "Yellow" +- } +- MapWindowForeground "Black" { +- "xterm" "White" +- } ++ "One" {"rgb:0/6/6" "rgb:f/f/f" "rgb:0/6/6" "rgb:f/f/f"} ++ "Two" {"rgb:4/4/6" "rgb:f/f/f" "rgb:4/4/6" "rgb:f/f/f"} ++ "Three" {"rgb:6/4/4" "rgb:f/f/f" "rgb:6/4/4" "rgb:f/f/f"} ++ "Four" {"rgb:6/6/6" "rgb:f/f/f" "rgb:6/6/6" "rgb:f/f/f"} ++ "Five" {"rgb:0/4/4" "rgb:f/f/f" "rgb:0/4/4" "rgb:f/f/f"} ++ "Six" {"rgb:2/2/4" "rgb:f/f/f" "rgb:2/2/4" "rgb:f/f/f"} ++ "Seven" {"rgb:4/2/2" "rgb:f/f/f" "rgb:4/2/2" "rgb:f/f/f"} ++ "Eight" {"rgb:4/4/4" "rgb:f/f/f" "rgb:4/4/4" "rgb:f/f/f"} ++} ++ ++Color { ++ BorderColor "rgb:0/0/8" ++ DefaultBackground "rgb:0/8/0" ++ DefaultForeground "rgb:e/e/e" ++ BorderTileBackground "rgb:0/8/8" ++ BorderTileForeground "rgb:0/0/0" ++ TitleBackground "rgb:0/b/b" ++ TitleForeground "rgb:0/0/f" ++ MenuBackground "rgb:f/f/0" ++ MenuForeground "rgb:0/0/f" ++ MenuTitleBackground "rgb:b/0/0" ++ MenuTitleForeground "rgb:b/b/0" ++ IconBackground "rgb:0/b/b" ++ IconForeground "rgb:f/f/f" ++ IconBorderColor "rgb:d/d/d" ++ IconManagerBackground "rgb:0/8/8" ++ IconManagerForeground "rgb:0/f/f" ++ MapWindowBackground "rgb:8/8/8" ++ MapWindowForeground "rgb:0/0/0" ++} ++ ++IconManagerDontShow { # do not display these windows in the icon manager ++} ++ ++NoTitle { # do not place a title bar on these windows + } + + IconManagerGeometry "202x300-0+0" 1 +@@ -80,10 +70,9 @@ + "WorkSpaceManager" + } + +-NoTitle { # little programs that look like icons +- "TWM Icon Manager" +- "WorkSpaceManager" ++AutoRaise { # automatically raise these windows + } ++ + # + # Define some useful functions for motion-based actions. + # +@@ -117,64 +106,62 @@ + # + # And a menus with the usual things + # +-menu "defops" +-{ +- "Twm" f.title +- "Xterm" !"xterm&" +- "Calculator" !"xcalc&" +- "Xman" !"xman &" +- "Xmag" !"xmag&" +- "" f.nop +- "Restart" f.restart +- "Exit" f.quit ++menu "defops" { ++ "Main Menu" f.title ++ "Debian" f.menu "/Debian" ++ "" f.separator ++ "Show Icon Manager" f.showiconmgr ++ "Hide Icon Manager" f.hideiconmgr ++ "" f.separator ++ "Show WorkSpace Manager" f.showworkspacemgr ++ "Hide WorkSpace Manager" f.hideworkspacemgr ++ "" f.separator ++ "Refresh screen" f.refresh ++ "" f.separator ++ "Exit" f.menu "Quit-Verify" ++} ++ ++menu "Quit-Verify" { ++ "Really quit ctwm?" f.title ++ "No, restart ctwm" f.restart ++ "Yes, really quit" f.quit + } + + menu "windowops" { +- "Windows" f.title +- "Occupy" f.occupy +- "Occupy All" f.occupyall +- "Iconify" f.iconify +- "Refresh" f.refresh +- "Vanish" f.vanish +- "Info" f.identify +- "" f.separator +- "Resize" f.resize +- "Move" f.move +- "Adopt Window" f.adoptwindow +- "Animate" f.startanimation +- "Don't animate" f.stopanimation +- "" f.separator +- "Send Delete" f.delete +- "Kill Window" f.destroy +- "Pin menu" f.pin +-} +- +-menu "windowmenu" { +- "Occupy ..." f.occupy +- "Occupy All" f.occupyall +- "Iconify" f.iconify +- "RaiseLower" f.raiselower +- "Refresh" f.winrefresh +- "Zoom" f.menu "Zoom" +- "Vanish" f.vanish +- "Focus" f.focus +- "Unfocus" f.unfocus +- "" f.separator +- "Send Delete" f.delete +- "Kill Window" f.destroy +- "Resize..." f.resize +- "Move..." f.move +-} +- +-menu "iconmenu" { +- "Actions" f.title +- "" f.separator +- "Restore" f.iconify +- "Move" f.move +- "Occupy ..." f.occupy +- "Occupy All" f.occupyall +- "" f.separator +- "Send Delete" f.delete +- "Kill Window" f.destroy ++ "Window Ops" f.title ++ "Occupy..." f.occupy ++ "Occupy All" f.occupyall ++ "Vanish" f.vanish ++ "" f.separator ++ "(De)Iconify" f.iconify ++ "Refresh" f.winrefresh ++ "Info..." f.identify ++ "" f.separator ++ "Resize" f.resize ++ "(Un)Squeeze" f.squeeze ++ "Zoom" f.menu "zoomops" ++ "" f.separator ++ "Move" f.move ++ "Pack move" f.movepack ++ "Push move" f.movepush ++ "" f.separator ++ "Restart animations" f.startanimation ++ "Freeze animations" f.stopanimation ++ "" f.separator ++ "Close" f.delete ++ "Kill" f.destroy ++} ++ ++menu "zoomops" { ++ "Zoom Ops" f.title ++ "Full zoom" f.fullzoom ++ "Horizontal zoom" f.horizoom ++ "Vertical zoom" f.zoom ++ "Top zoom" f.topzoom ++ "Bottom zoom" f.bottomzoom ++ "Left zoom" f.leftzoom ++ "Right zoom" f.rightzoom + } + ++undivert(`/etc/X11/ctwm/menudefs.hook') ++ +--- workmgr.c~ 2004-06-18 13:32:00.000000000 -0500 ++++ workmgr.c 2004-06-18 13:33:30.000000000 -0500 +@@ -800,7 +800,11 @@ + if (twm_win->iconmgr) return; + if (! Scr->TransientHasOccupation) { + if (twm_win->transient) return; +- if ((twm_win->group != (Window) 0) && (twm_win->group != twm_win->w)) return; ++ /* ++ * The following is commented out because it prevents, e.g., ++ * Mozilla windows from occupying different workspaces. ++ */ ++ /* if ((twm_win->group != (Window) 0) && (twm_win->group != twm_win->w)) return; */ + } + for (wlist = Scr->workSpaceMgr.workSpaceList; wlist != NULL; wlist = wlist->next) { + if (OCCUPY (twm_win, wlist)) { --- ctwm-3.7.orig/debian/postinst +++ ctwm-3.7/debian/postinst @@ -0,0 +1,25 @@ +#!/bin/sh + +# $Id: postinst 68 2006-05-16 17:48:07Z branden $ + +# Debian ctwm package post-installation script +# Copyright 1999, 2006 Branden Robinson. +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or . + +set -e + +trap "echo ;\ + echo 'Received signal. Aborting configuration of ctwm package.' ;\ + echo ;\ + exit 1" 1 2 3 15 + +#DEBHELPER# + +update-alternatives --install /usr/bin/x-window-manager x-window-manager \ + /usr/bin/ctwm 40 --slave /usr/share/man/man1/x-window-manager.1.gz \ + x-window-manager.1.gz /usr/share/man/man1/ctwm.1x.gz + +exit + +# vim:set ai et sw=4 ts=4 tw=80: --- ctwm-3.7.orig/debian/menu-method +++ ctwm-3.7/debian/menu-method @@ -0,0 +1,34 @@ +#!/usr/bin/install-menu +# -*- mode: shell-script; -*- +#I need menu-1! +# +#NOTE: the first line of this script _must_ be +# equal to "#!/usr/bin/install-menu", otherwise update-menus +# will feed this script old-compat-mode data. +# +#More info: /usr/doc/menu/html. +# +compat="menu-1" + +!include menu.h + +compat="menu-2" + +function q($com)=esc($com,"\""); +function f($com)=" \"" q(title()) "\" f.exec \"" q($com) " &\"\n"; + +#This doesn't seem to be possible with ctwm: wm="f.restart \"${title}\"\\n" +supported; + x11= f($command); + text=f(term()); +# x11 = " \"" $title "\" f.exec \""$command " &\"\n"; +# text= " \"" $title "\" f.exec \"xterm -title \\\"" +# $title "\\\" -e " esc($command,"\"") " &\"\n"; +endsupported; +startmenu= "menu \"" q($section) "\"\n{\n"; +endmenu= "}\n"; +submenutitle=" \"" q(title()) "\" f.menu \"" q($section) "\"\n"; +genmenu= "menudefs.hook"; +rcfile= "system.ctwmrc"; +rootprefix= "/etc/X11/ctwm/"; +userprefix= "/.ctwm/"; --- ctwm-3.7.orig/debian/changelog.Debian.old +++ ctwm-3.7/debian/changelog.Debian.old @@ -0,0 +1,80 @@ +ctwm (3.5-8) unstable; urgency=low, closes=25465 + + * Added support for update-menus in postinst and postrm scripts + * Added support for not-empty /etc/X11/ctwm directory (closes: + Bug#25465) + * Added /etc/menu-methods/ctwm as conffile. *blush* + * Added proper support for menu methods + + -- Martin Schulze Tue, 8 Sep 1998 02:27:59 +0200 + +ctwm (3.5-7) frozen unstable; urgency=medium, closes=22034 + + * Modified /etc/menu-methods/ctwm as of request by Joostje + * Added dependency on m4. Thanks to Thorild Selen + for informing me. (closes: Bug#22034) + + -- Martin Schulze Mon, 18 May 1998 11:48:47 +0200 + +ctwm (3.5-6) frozen unstable; urgency=low, closes=21284 + + * Now supports the menu system, thanks to Petr Konecny + for appropriate hints. (closes Bug#21284) + * Added Quit-Verify menu + + -- Martin Schulze Sat, 18 Apr 1998 00:13:52 +0200 + +ctwm (3.5-5) frozen unstable; urgency=medium + + * Correct permissions for changelog (lintian) + + -- Martin Schulze Tue, 24 Mar 1998 00:29:04 +0100 + +ctwm (3.5-4) unstable; urgency=low + + * DEBIAN/conffiles is owned root.root (lintian) + * ctwm.1.gz has mode 644 (lintian) + * Corrected i18n, thanks to Petr Konecny for + finding and fixing it. + + -- Martin Schulze Tue, 10 Mar 1998 04:33:59 +0100 + +ctwm (3.5-3) unstable; urgency=low, closes=18828 18910 16732 + + * Corrected little packaging error (closes: Bug#18828) + * Corrected way to post-modify Makefile, included XPM etc. Thanks to + Petr Konecny for pointing it out + * Corrected package description, thanks to Richard Braakman for + spell-checking package description. Tsk... (closes: Bug#18910) + * Included i18n (closes: Bug#16732) + + -- Martin Schulze Sat, 7 Mar 1998 05:21:30 +0100 + +ctwm (3.5-2) unstable; urgency=low, closes=16029 + + * New maintainer + * Re-wrote debian/rules + * Re-included changelog from 3.3 + * Standards-Version: 2.4.0.0 + * Re-included copyright file from 3.3 (closes: Bug#16029) + * Re-included lynx.ctwmrc as example + * Re-corrected the manpage + + -- Martin Schulze Sun, 1 Mar 1998 04:47:19 +0100 + +ctwm (3.5-1) unstable; urgency=medium + + * Upgraded upstream version. + + -- Vadim Vygonets Sat, 29 Nov 1997 13:37:15 +0200 + +Thu Jan 2 13:40:38 1997 Martin Schulze + + * Corrected ctwm.man + + * Included ctwm.1 (Bug#5826) + +Sun Dec 22 11:23:22 1996 Martin Schulze + + * changelog.upstream and changelog.debian created + --- ctwm-3.7.orig/debian/copyright +++ ctwm-3.7/debian/copyright @@ -0,0 +1,67 @@ +Package: ctwm +Obtained from: http://ctwm.free.lp.se/dist/ctwm-3.7.tar.gz + http://slpc1.epfl.ch/public/software/ctwm/ctwm-images.tar.gz +Upstream maintainer: Reichard Levitte + +Debian's changes to the upstream sources are available in the file +debian/patches. + +Debian copyright/licensing: + +Unless otherwise noted, all modifications and additions to ctwm found in +Debian packages bear the following copyright and license terms: + +Copyright 1996-1999 Martin Schulze. +Copyright 1999 Software in the Public Interest, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +MARTIN SCHULZE OR SOFTWARE IN THE PUBLIC INTEREST, INC. BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT +OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of Martin Schulze shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from Martin Schulze. + +Except as contained in this notice, the name of Software in the Public +Interest, Inc. shall not be used in advertising or otherwise to promote the +sale, use or other dealings in this Software without prior written +authorization from Software in the Public Interest, Inc. + +Upstream copyright/licensing: + +Copyright 1988 Evans & Sutherland Computer Corporation. +Copyright 1989 Hewlett-Packard Company. +Copyright 1989 Massachusetts Institute of Technology. +Copyright 1992 Claude Lecommandeur. + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, provide +that the above copyright notice(s) appear in all copies and that both the +copyright notice and this permission notice appear in supporting +documentation, and that the names of the copyright holders not be used in +advertising in publicity pertaining to the distribution of the software +without specific, written prior permission. + +THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN SO +EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR +CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +$Id: copyright 44 2005-11-02 15:43:44Z branden $ --- ctwm-3.7.orig/debian/lynx.ctwmrc.m4 +++ ctwm-3.7/debian/lynx.ctwmrc.m4 @@ -0,0 +1,308 @@ +dnl # This is the file that makes people every now and then come up +dnl # to me and ask: +dnl # +dnl # What window manager (or even: window system) are you running? +dnl # +dnl # Oh.. just a heavily adapted vanilla twm with Xwindows. +dnl # +dnl # ... hmm not anymore.. +dnl # but it still looks funky even without ctwm.. +dnl # +dnl # Usage: +dnl # "iconify" button: left = iconify, middle = vanish, right = close +dnl # "menu" button: left = occ.all, middle = menu, right = autoraise +dnl # "resize" button: left = resize, middle = z-menu, right = fullzoom +dnl # +dnl # Enjoy ctwm! -LynX (http://my.pages.de/) +dnl # +# .twmrc is automatically generated from .ctwmrc with 'm4 .ctwmrc >.twmrc' + +ifdef(`TWM_TYPE', ` +PixmapDirectory "/usr/include/X11/pixmaps/" +') +dnl # IconDirectory "/usr/X11/lib/ctwm/icons/" + +RestartPreviousState +NoDefaults +NoGrabServer +TitleFont "-*-times-*-i-*-*-*-180-*-*-*-*-*-*" +IconFont "-*-times-*-i-*-*-*-180-*-*-*-*-*-*" +MenuFont "-*-times-*-i-*-*-*-180-*-*-*-*-*-*" +ResizeFont "-*-times-*-i-*-*-*-180-*-*-*-*-*-*" +DecorateTransients +SqueezeTitle +AutoRelativeResize +DefaultFunction f.nop +DontMoveOff +WarpCursor +WindowRing { "XTerm" } +UsePPosition "non-zero" +#XorValue 1 +dnl #IconManagerGeometry "150x150-1+0" +dnl #IconManagerDontShow { "xclock" "xbiff" "xload" "xeyes" } + +ifdef(`TWM_TYPE', ` +Function "move-or-raise" { f.movepush f.deltastop f.raise } +',` +Function "move-or-raise" { f.move f.deltastop f.raise } +') + +ifdef(`TWM_TYPE', ` + LeftTitleButton "iconify.xbm" { + Button1 : f.iconify + Button2 : f.vanish + Button3 : f.delete + } + RightTitleButton "menu.xbm" { + Button1 : f.occupyall + Button2 : f.menu "win" + Button3 : f.autoraise + } + RightTitleButton "zoom.xbm" { + Button1 : f.resize + Button2 : f.menu "zoom" + Button3 : f.fullzoom + } +',` + LeftTitleButton "iconify.xbm" = f.iconify + LeftTitleButton "menu.xbm" = f.menu "win" +#RightTitleButton "kill.xbm" = f.destroy + RightTitleButton "zoom.xbm" = f.menu "zoom" + RightTitleButton "autoraise.xbm" = f.autoraise + RightTitleButton "resize.xbm" = f.resize +') + +Button1 = : r : f.menu "shells" +Button2 = : r : f.menu "control" +Button3 = : r : f.menu "menu" + +dnl Button1 = s : r : f.iconify +dnl Button2 = s : r : f.showiconmgr +dnl Button3 = s : r : f.hideiconmgr +dnl +dnl Button1 = c|m : r : f.focus +dnl Button2 = c|m : r : f.unfocus +dnl Button3 = c|m : r : f.destroy + +Button1 = : t : f.function "move-or-raise" +Button1 = : i|m : f.iconify +Button1 = : f : f.resize +Button2 = : t|i|f : f.move +Button2 = s : t|i|f : f.forcemove +Button3 = : t|i|f : f.lower + +dnl Button1 = m : w : f.fullzoom +dnl Button2 = m : w : f.zoom +dnl Button3 = m : w|i : f.resize + +ifdef(`TWM_TYPE', ` +"Left" = : r|t|i : f.leftworkspace +"Right" = : r|t|i : f.rightworkspace + +"F1" = : all : f.gotoworkspace "WORK" +"F2" = : all : f.gotoworkspace "SURF" +"F3" = : all : f.gotoworkspace "CHAT" +"F4" = : all : f.gotoworkspace "VIEW" +') +"F7" = : all : f.warpring "prev" +"F8" = : all : f.warpring "next" +"F9" = : all : f.warpring "prev" +"F10" = : all : f.warpring "next" +"F12" = : all : f.warpto "IRC" # hey! an IRC key! ;-) + +menu "shells" { +"" f.menu "tools" +"xterm" !"xterm &" +"netscape" !"netscape -ncols 150 &" # -geometry 630x500 +"mosaic" !"xmosaic &" +"xman" !"xman -fn symbol14 -bothshown -g -0+35 &" +"xcalc" !"xcalc -g 140x230 &" +"xarchie" !"xarchie &" +"irc" !"xterm -g 80x14+0+0 -n IRC -T IRC -e irc &" +} + +menu "tools" { +"xlock" !"xlock &" +"xload" !"xload -g 90x90 &" +"xfontsel" !"xfontsel &" +"bitmap" !"bitmap &" +"xclipboard" !"xclipboard &" +"xmagnify" !"xmag &" +"xgopher" !"xgopher &" +"xclock" !"xclock -g 90x90-3+3 &" +"xeyes" !"xeyes -g 80x80+3-111 -outline red &" +"xconsole" !"xconsole -daemon -exitOnFail" +} + +menu "root" { +"grey23" !"xsetroot -solid grey23 &" +"olive" !"xsetroot -solid DarkOliveGreen &" +"seagreen" !"xsetroot -solid SeaGreen &" +"black" !"xsetroot -solid black &" +"ico-col &" !"ico -r -faces -colors red orange yellow green blue violet -sleep 3 &" +"ico-bw &" !"ico -r -faces -colors grey20 grey25 grey30 grey35 grey40 grey45 -sleep 1 &" +} + +dnl ## distractions.. relaxment.. :) i never use them.. +menu "art" { +"flame" !"xlock -nolock -mode flame &" +"rock" !"xlock -nolock -mode rock &" +"hyper" !"xlock -nolock -mode hyper &" +"grav" !"xlock -nolock -mode grav &" +"bounce" !"xlock -nolock -mode bounce &" +"sphere" !"xlock -nolock -mode sphere &" +"kaleid" !"xlock -nolock -mode kaleid &" +"galaxy" !"xlock -nolock -mode galaxy &" +"blot" !"xlock -nolock -mode blot &" +"rotor" !"xlock -nolock -mode rotor &" +"hop" !"xlock -nolock -mode hop &" +"qix" !"xlock -nolock -mode qix &" +"maze" !"xlock -nolock -mode maze &" +"worm" !"xlock -nolock -mode worm &" +"swarm" !"xlock -nolock -mode swarm &" +} + +menu "control" { +"root" f.menu "root" +dnl# "CONTROL" f.title +"quit" f.quit +"rehash" f.twmrc +"restart" f.restart +"refresh" f.refresh +"version" f.version +ifdef(`TWM_TYPE', ` +"animate" f.startanimation +"deanimate" f.stopanimation +') +} + +menu "menu" { +"Artwork" f.menu "art" +"Basic" f.menu "basic" +"Window" f.menu "win" +"Zoom" f.menu "zoom" +} + +menu "basic" { +ifdef(`TWM_TYPE', ` +"vanish" f.vanish +"occupy all" f.occupyall +') +"autoraise" f.autoraise +"(de)iconify" f.iconify +"resize" f.resize +"raise" f.raise +"lower" f.lower +"move" f.move +} + +menu "zoom" { +"vertical" f.zoom +"to the left" f.leftzoom +"to the right" f.rightzoom +"to the bottom" f.bottomzoom +"horizontal" f.horizoom +"full zoom" f.fullzoom +} + +menu "win" { +"close" f.delete +"destroy" f.destroy +"info" f.identify +"refresh" f.winrefresh +"focus" f.focus +"unfocus" f.unfocus +"cutfile" f.cutfile +"save" f.saveyourself +} + +Monochrome { +TitleBackground "black" +TitleForeground "white" +BorderColor "white" +} + +dnl # ctwm stuff, the workspaces +dnl # +ifdef(`TWM_TYPE', ` +UseThreeDMenus +UseThreeDIconManagers +#UseThreeDBorders +BeNiceToColormap +NoIconManagers +RandomPlacement "unmapped" + +AnimationSpeed 33 +Icons { + "IRC" "xpm:ball%.xpm" +# "IRC" "xpm:xirc.xpm" +# "XTerm" "xpm:xterm.xpm" + "XBiff" "xpm:nt%.xpm" + "Emacs" "xpm:gnu-emacs%.xpm" + "Ghostview" "xpm:ghostview.xpm" + "Mosaic" "xpm:xmosaic.xpm" + "Archie" "xpm:xarchie.xpm" + "FTP" "xpm:xftp.xpm" + "XMan" "xpm:xman.xpm" +} + +OpaqueMove +OpaqueMoveThreshold 15 +OpaqueResize +OpaqueResizeThreshold 8 + +ShowWorkSpaceManager +WorkSpaceManagerGeometry "700x70+250+0" 4 +StartInMapState +MapWindowDefaultWorkSpace { "#983" "#000" "#794" } +MapWindowCurrentWorkSpace { "#b52" "#000" "#b52" } +WorkSpaces { +"WORK" { "#122" "#983" "#122" "#983" "xpm:bg/af.xpm"} +"SURF" { "#122" "#983" "#122" "#794" "xpm:bg/o020.xpm"} +"CHAT" { "#122" "#983" "#000" "#983" "xpm:bg/bx.xpm"} +"VIEW" { "#122" "#983" "#794" "#122" "xpm:bg/ay.xpm"} +} + +#AutoOccupy +OccupyAll { "IRC" "XBiff" "XExit" "XConsole" } +Occupy { +WorkSpace "SURF" { "Netscape" } +WorkSpace "VIEW" { "Mosaic" "Gopher" "Archie" "XPaint" "XV" } +} + +Color { +# MenuShadowColor "#983" +TitleBackground "#ca7" { "XTerm" "#983" "IRC" "#b52" "*.uol" "#794" } +',` +UnknownIcon "icon.xbm" + +Color { +TitleBackground "#794" +IconBorderColor "#b95" +') +DefaultForeground "#ca7" +DefaultBackground "#122" +#DefaultBackground "#983" +#TitleForeground "#ca7" +TitleForeground "#000" +IconForeground "#762" +IconBackground "#ca7" +MenuForeground "#000" +MenuBackground "#794" +MenuTitleBackground "#762" +MenuTitleForeground "#ca7" +BorderColor "#f77" +} + +NoTitle { +"XClock" "XEyes" "XBiff" "XLoad" "XConsole" "XExit" "xpostit" "xman" +"WorkSpaceManager" +} + +dnl # i love ctwm's delayed global autoraise +AutoRaise ifdef(`TWM_TYPE', ` +RaiseDelay 15000 +', `{ +"XTerm" "Xman" "XConsole" "XLoad" "Xmris" "XMosaic" "Mosaic" "xv" "Xarchie" +"Xrwho" "Zircon" "Ghostview" "Netscape" "XRisk" "Audiotool" "XWho" +}') --- ctwm-3.7.orig/debian/menu +++ ctwm-3.7/debian/menu @@ -0,0 +1,6 @@ +?package(ctwm):\ + needs="wm"\ + section="WindowManagers"\ + longtitle="Ctwm: Claude's Tab Window Manager"\ + title="Ctwm"\ + command="ctwm" --- ctwm-3.7.orig/debian/control +++ ctwm-3.7/debian/control @@ -0,0 +1,19 @@ +Source: ctwm +Section: x11 +Priority: optional +Maintainer: Branden Robinson +Build-Depends: x11proto-core-dev, libice-dev, libsm-dev, libx11-dev, libxext-dev, libxmu-dev, libxpm-dev, libxt-dev, librplay3-dev, libjpeg-dev, xutils-dev, flex, bison, debhelper (>= 4.0) +Standards-Version: 3.7.2 + +Package: ctwm +Architecture: any +Depends: m4, ${shlibs:Depends} +Pre-Depends: x11-common (>= 1:7.0.0) +Provides: x-window-manager +Description: Claude's Tab window manager + ctwm is Claude Lecommandeur's extension to twm; in addition to the + features of twm, it supports multiple virtual screens, the pixmap file + format, pinnable ("sticky") menus, and other enhancements. + +# $Id: control 72 2006-07-21 14:29:22Z branden $ +# vim: set ai et sw=2 ts=2 tw=78: --- ctwm-3.7.orig/debian/postrm +++ ctwm-3.7/debian/postrm @@ -0,0 +1,22 @@ +#!/bin/sh +# Debian ctwm package post-removal script +# Copyright 1999 Branden Robinson. +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or . + +set -e + +trap "echo ;\ + echo 'Received signal. Aborting removal of ctwm package.' ;\ + echo ;\ + exit 1" 1 2 3 15 + +if [ "$1" = "purge" ]; then + if [ -d /etc/X11/ctwm ]; then + rm -r /etc/X11/ctwm + fi +fi + +#DEBHELPER# + +exit --- ctwm-3.7.orig/debian/rules +++ ctwm-3.7/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f + +# $Id: rules 68 2006-05-16 17:48:07Z branden $ + +# Debian package build rules file for ctwm +# Copyright 1997-1999 Joey Hess. +# Copyright 1999 Branden Robinson. +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or . + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=4 + +CFLAGS=-g +# Does DEB_BUILD_OPTIONS contain the "noopt" flag? +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +# don't get rid of the space in the next line +CFLAGS+= -O2 +else +CFLAGS+= -O0 +endif +export CFLAGS + +build: build-stamp +build-stamp: + dh_testdir + + CC=gcc xmkmf -DDontPreprocessManPages=0 + $(MAKE) + + >"$@" + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -$(MAKE) clean + rm -f Makefile + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) DESTDIR=debian/ctwm install install.man + # Don't ship pixmaps that are in fvwm-icons. + rm debian/ctwm/usr/include/X11/pixmaps/datebook.xpm + rm debian/ctwm/usr/include/X11/pixmaps/mail1.xpm + rm debian/ctwm/usr/include/X11/pixmaps/term.xpm + rm debian/ctwm/usr/include/X11/pixmaps/unknown1.xpm + rm debian/ctwm/usr/include/X11/pixmaps/xcalc.xpm + rm debian/ctwm/usr/include/X11/pixmaps/xman.xpm + rm debian/ctwm/usr/include/X11/pixmaps/xterm.xpm + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs PROBLEMS README README.gnome TODO.gnome + dh_installexamples example.ctwmrc levitte.ctwmrc debian/lynx.ctwmrc.m4 \ + peterc.ctwmrc system.ctwmrc.gnome + dh_installmenu + dh_installmanpages + dh_installchangelogs CHANGES + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# We build no architecture-independent packages, so the binary-indep rules is +# empty. +binary-indep: + +binary: binary-arch binary-indep +.PHONY: build clean binary-arch binary install + +# vim:set ai noet sw=2 ts=8 tw=80: