summaryrefslogtreecommitdiff
path: root/package/debian/patches/01_debian_system_twmrc.diff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2020-06-16 20:25:31 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2020-06-16 20:25:31 -0400
commit60bbd1b24a640e26a3f71f8eb35b5c031642a5e5 (patch)
treebddc4fa7905fb008e48f66eadb1fd2cb4672a7e2 /package/debian/patches/01_debian_system_twmrc.diff
parent08f44086320c6bc5f2c7eb6457a0d53192832805 (diff)
use Debian's package-files as starting point for test-packages
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'package/debian/patches/01_debian_system_twmrc.diff')
-rw-r--r--package/debian/patches/01_debian_system_twmrc.diff99
1 files changed, 99 insertions, 0 deletions
diff --git a/package/debian/patches/01_debian_system_twmrc.diff b/package/debian/patches/01_debian_system_twmrc.diff
new file mode 100644
index 0000000..b7e3330
--- /dev/null
+++ b/package/debian/patches/01_debian_system_twmrc.diff
@@ -0,0 +1,99 @@
+From: Branden Robinson <branden@debian.org>
+
+Fix system.twmrc to actually be useful and tabbed right, as well as add
+the Debian menu.
+
+Index: twm/src/system.twmrc
+===================================================================
+--- twm.orig/src/system.twmrc
++++ twm/src/system.twmrc
+@@ -48,7 +48,8 @@ Function "move-or-iconify" { f.move f.de
+ #
+ # Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
+ #
+-Button1 = : root : f.menu "defops"
++Button1 = : root : f.menu "main"
++Button2 = : root : f.menu "windowops"
+
+ Button1 = m : window|icon : f.function "move-or-lower"
+ Button2 = m : window|icon : f.iconify
+@@ -66,25 +67,39 @@ Button2 = : iconmgr : f.iconify
+ #
+ # And a menus with the usual things
+ #
+-menu "defops"
++menu "main"
+ {
+-"Twm" f.title
+-"Iconify" f.iconify
+-"Resize" f.resize
+-"Move" f.move
+-"Raise" f.raise
+-"Lower" f.lower
+-"" f.nop
+-"Focus" f.focus
+-"Unfocus" f.unfocus
+-"Show Iconmgr" f.showiconmgr
+-"Hide Iconmgr" f.hideiconmgr
+-"" f.nop
+-"Xterm" f.exec "exec xterm &"
+-"" f.nop
+-"Kill" f.destroy
+-"Delete" f.delete
+-"" f.nop
+-"Restart" f.restart
+-"Exit" f.quit
++ "Main Menu" f.title
++ "Debian" f.menu "/Debian"
++ "" f.nop
++ "Show Icon Manager" f.showiconmgr
++ "Hide Icon Manager" f.hideiconmgr
++ "" f.nop
++ "Exit" f.menu "Quit-Verify"
+ }
++
++menu "Quit-Verify"
++{
++ "Really quit twm?" f.title
++ "No, restart twm" f.restart
++ "Yes, really quit" f.quit
++}
++
++menu "windowops"
++{
++ "Window Ops" f.title
++ "" f.nop
++ "Iconify" f.iconify
++ "Resize" f.resize
++ "Move" f.move
++ "Raise" f.raise
++ "Lower" f.lower
++ "" f.nop
++ "Focus" f.focus
++ "Unfocus" f.unfocus
++ "" f.nop
++ "Delete" f.delete
++ "Destroy" f.destroy
++}
++
++include-menu-defs
+Index: twm/src/Makefile.am
+===================================================================
+--- twm.orig/src/Makefile.am
++++ twm/src/Makefile.am
+@@ -24,13 +24,13 @@ AM_YFLAGS = -d
+
+ bin_PROGRAMS = twm
+
+-rcdir = ${datadir}/X11/twm
++rcdir = ${sysconfdir}/X11/twm
+ dist_rc_DATA = system.twmrc
+
+ AM_CPPFLAGS = \
+ -DXVENDORNAME=\"The\ X.Org\ Foundation\" \
+ -DXORG_RELEASE=\"Release\ $(VERSION)\" \
+- -DSYSTEM_INIT_FILE=\"${datadir}/X11/twm/system.twmrc\"
++ -DSYSTEM_INIT_FILE=\"$(rcdir)/system.twmrc\"
+
+ AM_CFLAGS = $(TWM_CFLAGS)
+ twm_LDADD = $(TWM_LIBS)