CVS commit: xsrc/external/mit/ctwm/dist

2023-10-20 Thread Michael van Elst
Module Name:xsrc
Committed By:   mlelstv
Date:   Fri Oct 20 10:18:56 UTC 2023

Modified Files:
xsrc/external/mit/ctwm/dist: signals.c

Log Message:
Use a SIGCHLD handler instead of ignoring the signal.

This avoids lockups when child processes were inherited (e.g. from .xsession)
but new children are waited for in system().


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 xsrc/external/mit/ctwm/dist/signals.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/signals.c
diff -u xsrc/external/mit/ctwm/dist/signals.c:1.1.1.1 xsrc/external/mit/ctwm/dist/signals.c:1.2
--- xsrc/external/mit/ctwm/dist/signals.c:1.1.1.1	Wed Jul  5 07:36:07 2023
+++ xsrc/external/mit/ctwm/dist/signals.c	Fri Oct 20 10:18:55 2023
@@ -8,6 +8,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 
 #include "ctwm_shutdown.h"
 #include "signals.h"
@@ -26,6 +28,15 @@ static bool sig_shutdown = false;
 // needs to trigger an action.
 bool SignalFlag = false;
 
+void ChildExit(int signum)
+{
+	int Errno = errno;
+	/* reap dead children, ignore status */
+	while (waitpid(-1, NULL, WNOHANG) > 0)
+		continue;
+	/* restore errno for interrupted sys calls */
+	errno = Errno;
+}
 
 /**
  * Setup signal handlers (run during startup)
@@ -46,9 +57,12 @@ setup_signal_handlers(void)
 	// die...
 	signal(SIGALRM, SIG_IGN);
 
-	// This should be set by default, but just in case; explicitly don't
-	// leave zombies.
-	signal(SIGCHLD, SIG_IGN);
+	/* Setting SIGCHLD to SIG_IGN detaches children from the parent
+	 * immediately, so it need not be waited for.
+	 * In fact, you cannot wait for it, so a function like system()
+	 * breaks.
+	 */
+	signal(SIGCHLD, ChildExit);
 
 	return;
 }



CVS commit: xsrc/external/mit/ctwm/dist

2023-10-20 Thread Michael van Elst
Module Name:xsrc
Committed By:   mlelstv
Date:   Fri Oct 20 10:18:56 UTC 2023

Modified Files:
xsrc/external/mit/ctwm/dist: signals.c

Log Message:
Use a SIGCHLD handler instead of ignoring the signal.

This avoids lockups when child processes were inherited (e.g. from .xsession)
but new children are waited for in system().


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 xsrc/external/mit/ctwm/dist/signals.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2023-08-11 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Fri Aug 11 18:32:46 UTC 2023

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
redo previous change which didn't actually avoid the truncation.

increase the definition of MSLEN so that the size check fits the
maximum actual string definition.  also reduces diff vs upstream
to just one 1 line.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.12 xsrc/external/mit/ctwm/dist/menus.c:1.13
--- xsrc/external/mit/ctwm/dist/menus.c:1.12	Fri Jul 28 14:27:35 2023
+++ xsrc/external/mit/ctwm/dist/menus.c	Fri Aug 11 18:32:46 2023
@@ -1658,8 +1658,8 @@ mk_twmkeys_entry(const FuncKey *key)
 {
 	char *ret;
 	// S+  C+  5(Mx+)  5(Ax+)
-#define MSLEN (2 + 2 + 5 * 3 + 5 * 3)
-	char modStr[64];
+#define MSLEN (2 + 2 + 2 + 5 * 3 + 5 * 3 + 1 + 26)
+	char modStr[MSLEN + 1];
 	char *modStrCur = modStr;
 
 	// Init



CVS commit: xsrc/external/mit/ctwm/dist

2023-08-11 Thread matthew green
Module Name:xsrc
Committed By:   mrg
Date:   Fri Aug 11 18:32:46 UTC 2023

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
redo previous change which didn't actually avoid the truncation.

increase the definition of MSLEN so that the size check fits the
maximum actual string definition.  also reduces diff vs upstream
to just one 1 line.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2023-07-28 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Fri Jul 28 14:27:35 UTC 2023

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
Gcc complains about overflow writing 53 bytes into a region of size 35,
and it is correct for the alphabet copying line, which correctly comments
about the overflow too.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2023-07-28 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Fri Jul 28 14:27:35 UTC 2023

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
Gcc complains about overflow writing 53 bytes into a region of size 35,
and it is correct for the alphabet copying line, which correctly comments
about the overflow too.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.11 xsrc/external/mit/ctwm/dist/menus.c:1.12
--- xsrc/external/mit/ctwm/dist/menus.c:1.11	Wed Jul  5 04:39:10 2023
+++ xsrc/external/mit/ctwm/dist/menus.c	Fri Jul 28 10:27:35 2023
@@ -1659,7 +1659,7 @@ mk_twmkeys_entry(const FuncKey *key)
 	char *ret;
 	// S+  C+  5(Mx+)  5(Ax+)
 #define MSLEN (2 + 2 + 5 * 3 + 5 * 3)
-	char modStr[MSLEN + 1];
+	char modStr[64];
 	char *modStrCur = modStr;
 
 	// Init



CVS commit: xsrc/external/mit/ctwm/dist

2023-07-05 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Wed Jul  5 08:39:10 UTC 2023

Modified Files:
xsrc/external/mit/ctwm/dist: add_window.c ctwm.1 ctwm.h ctwm_atoms.c
ctwm_atoms.h ctwm_config.h cursor.c deftwmrc.c event_names_table.h
ewmh_atoms.c ewmh_atoms.h functions_deferral.h functions_defs.h
functions_dispatch_execution.h functions_parse_table.h gram.y
iconmgr.c iconmgr.h icons.c list.c menus.c menus.h parse.c screen.h
session.c session.h types.h util.c util.h version.c vscreen.c
vscreen.h windowbox.c
Added Files:
xsrc/external/mit/ctwm/dist: gram.tab.c gram.tab.h

Log Message:
Merge ctwm-4.1.0


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/ctwm/dist/add_window.c
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/ctwm.1 \
xsrc/external/mit/ctwm/dist/ctwm.h xsrc/external/mit/ctwm/dist/cursor.c \
xsrc/external/mit/ctwm/dist/gram.y xsrc/external/mit/ctwm/dist/iconmgr.c \
xsrc/external/mit/ctwm/dist/iconmgr.h xsrc/external/mit/ctwm/dist/icons.c \
xsrc/external/mit/ctwm/dist/list.c xsrc/external/mit/ctwm/dist/menus.h \
xsrc/external/mit/ctwm/dist/screen.h \
xsrc/external/mit/ctwm/dist/session.h xsrc/external/mit/ctwm/dist/types.h \
xsrc/external/mit/ctwm/dist/util.h xsrc/external/mit/ctwm/dist/version.c \
xsrc/external/mit/ctwm/dist/vscreen.h \
xsrc/external/mit/ctwm/dist/windowbox.c
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/ctwm_atoms.c \
xsrc/external/mit/ctwm/dist/ctwm_atoms.h \
xsrc/external/mit/ctwm/dist/ctwm_config.h \
xsrc/external/mit/ctwm/dist/deftwmrc.c \
xsrc/external/mit/ctwm/dist/event_names_table.h \
xsrc/external/mit/ctwm/dist/ewmh_atoms.c \
xsrc/external/mit/ctwm/dist/ewmh_atoms.h \
xsrc/external/mit/ctwm/dist/functions_deferral.h \
xsrc/external/mit/ctwm/dist/functions_defs.h \
xsrc/external/mit/ctwm/dist/functions_dispatch_execution.h \
xsrc/external/mit/ctwm/dist/functions_parse_table.h
cvs rdiff -u -r0 -r1.3 xsrc/external/mit/ctwm/dist/gram.tab.c
cvs rdiff -u -r0 -r1.4 xsrc/external/mit/ctwm/dist/gram.tab.h
cvs rdiff -u -r1.10 -r1.11 xsrc/external/mit/ctwm/dist/menus.c
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/parse.c \
xsrc/external/mit/ctwm/dist/vscreen.c
cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/ctwm/dist/session.c \
xsrc/external/mit/ctwm/dist/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2022-07-19 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Jul 19 07:14:18 UTC 2022

Modified Files:
xsrc/external/mit/ctwm/dist: ctwm.1

Log Message:
Fix path in man page to system.ctwmrc.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/ctwm.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/ctwm.1
diff -u xsrc/external/mit/ctwm/dist/ctwm.1:1.1 xsrc/external/mit/ctwm/dist/ctwm.1:1.2
--- xsrc/external/mit/ctwm/dist/ctwm.1:1.1	Sun Apr 11 10:11:57 2021
+++ xsrc/external/mit/ctwm/dist/ctwm.1	Tue Jul 19 07:14:18 2022
@@ -220,7 +220,7 @@ $HOME/\&.twmrc\&.screennumber, $HOME/\&.
 The users twm startup file\&.
 .RE
 .PP
-/usr/local/etc/system\&.ctwmrc
+/etc/X11/ctwm/system\&.ctwmrc
 .RS 4
 If none of the preceding files are found, ctwm will look in this file for a default configuration\&. This is often tailored by the site administrator to provide convenient menus or familiar bindings for novice users\&.
 .RE



CVS commit: xsrc/external/mit/ctwm/dist

2022-07-19 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Jul 19 07:14:18 UTC 2022

Modified Files:
xsrc/external/mit/ctwm/dist: ctwm.1

Log Message:
Fix path in man page to system.ctwmrc.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/ctwm.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2021-04-12 Thread Michael van Elst
Module Name:xsrc
Committed By:   mlelstv
Date:   Mon Apr 12 06:42:31 UTC 2021

Modified Files:
xsrc/external/mit/ctwm/dist: add_window.c

Log Message:
Reapply font calculation fix.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/add_window.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2021-04-12 Thread Michael van Elst
Module Name:xsrc
Committed By:   mlelstv
Date:   Mon Apr 12 06:42:31 UTC 2021

Modified Files:
xsrc/external/mit/ctwm/dist: add_window.c

Log Message:
Reapply font calculation fix.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/add_window.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/add_window.c
diff -u xsrc/external/mit/ctwm/dist/add_window.c:1.3 xsrc/external/mit/ctwm/dist/add_window.c:1.4
--- xsrc/external/mit/ctwm/dist/add_window.c:1.3	Sun Apr 11 10:11:57 2021
+++ xsrc/external/mit/ctwm/dist/add_window.c	Mon Apr 12 06:42:31 2021
@@ -1000,7 +1000,7 @@ AddWindow(Window w, AWType wtype, IconMg
    tmp_win->name, namelen,
    _rect, _rect);
 width = SIZE_HINDENT + ink_rect.width;
-height = logical_rect.height + SIZE_VINDENT * 2;
+height = Scr->SizeFont.height + SIZE_VINDENT * 2;
 
 XmbTextExtents(Scr->SizeFont.font_set,
    ": ", 2,  NULL, _rect);



CVS commit: xsrc/external/mit/ctwm/dist

2021-04-11 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Sun Apr 11 10:51:49 UTC 2021

Removed Files:
xsrc/external/mit/ctwm/dist: gram.tab.c gram.tab.h lex.c

Log Message:
Remove accidental duplicates of autogenerated files


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 xsrc/external/mit/ctwm/dist/gram.tab.c \
xsrc/external/mit/ctwm/dist/lex.c
cvs rdiff -u -r1.2 -r0 xsrc/external/mit/ctwm/dist/gram.tab.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2021-04-11 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Sun Apr 11 10:51:49 UTC 2021

Removed Files:
xsrc/external/mit/ctwm/dist: gram.tab.c gram.tab.h lex.c

Log Message:
Remove accidental duplicates of autogenerated files


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 xsrc/external/mit/ctwm/dist/gram.tab.c \
xsrc/external/mit/ctwm/dist/lex.c
cvs rdiff -u -r1.2 -r0 xsrc/external/mit/ctwm/dist/gram.tab.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2021-04-11 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Sun Apr 11 10:11:58 UTC 2021

Modified Files:
xsrc/external/mit/ctwm/dist: add_window.c add_window.h clicktofocus.c
clicktofocus.h ctwm.h cursor.c cursor.h events.h gc.c gc.h
gram.tab.h gram.y iconmgr.c iconmgr.h icons.c icons.h lex.l list.c
list.h menus.c menus.h mwmhints.c mwmhints.h parse.c parse.h
screen.h session.c session.h sound.c sound.h types.h util.c util.h
version.c version.h vscreen.c vscreen.h windowbox.c windowbox.h
Added Files:
xsrc/external/mit/ctwm/dist: ctwm.1 ctwm_atoms.c ctwm_atoms.h
ctwm_config.h event_names_table.h ewmh_atoms.c ewmh_atoms.h
functions_deferral.h functions_defs.h
functions_dispatch_execution.h functions_parse_table.h
Removed Files:
xsrc/external/mit/ctwm/dist: CHANGES Imakefile Imakefile.local-template
PROBLEMS README README.VMS README.gnome TODO TODO.gnome
ctwm.axp_opt ctwm.c ctwm.com ctwm.man ctwm.spec ctwm.txt
ctwm.vax_opt demolib.c descrip.local-template descrip.mms
descrip.submms events.c example.ctwmrc gendeftwmrc.com gnome.c
gnome.h gnomewindefs.h gram.c_VMS gram.h_VMS gtw.c levitte.ctwmrc
lex.c_VMS libctwm.c link.com lnm.c lnm.h make.com mk_tar.sh
peterc.ctwmrc resize.c resize.h siconify.bm sound.doc system.ctwmrc
system.ctwmrc.gnome twm.h vms.txt vms2.txt vms_cmd_services.c
vms_cmd_services.h workmgr.c workmgr.h

Log Message:
Merge ctwm-4-0-3

# CTWM Change History

## 4.0.3  (2019-07-21)

### Bugfixes

1. Perform various manipulations and overrides of `WM_HINTS` property
   when it gets reset during runtime, like we do when initially adopting
   the window.  The most visible effect of this was in windows that don't
   give a focus hint (which we override to give focus), but then reset
   `WM_HINTS` later and still don't give us a hint, where we wound up not
   re-overriding previously.  Reported for `xvile` by Wayne Cuddy.

1. The font height estimation changes in 4.0.0 were not applied correctly
   when UseThreeDMenus was set, leading to some odd vertical misalignment
   of the text with some fonts.  Reported by Wayne Cuddy.

1. A failure in OTP consistency checks caused by the handling of
   transients of fullscreen windows has been fixed.  This manifested as
   failures in OtpCheckConsistencyVS() assertions.

## 4.0.2  (2018-08-25)

### Backward-Incompatible Changes And Removed Features

1. The `UseThreeDIconBorders` config var has been removed.  It came in
   silently and undocumented in 3.4 and has never done anything.

1. The attempts to use DNS lookups for setting the `HOSTNAME` `m4` variable
   have been removed; it is now just a duplicate of `CLIENTHOST`.

### New Features

1. The EWMH `_NET_WM_NAME` property is now supported, and used for the
   window name in place of the ICCCM `WM_NAME` when set.  By default, we
   also accept `UTF8_STRING` encoded `WM_NAME` as a result of this
   change; see below for var to restore historical strictness.

1. The EWMH `_NET_WM_ICON_NAME` property is now supported, and used for
   the icon name in place of the ICCCM `WM_ICON_NAME` when set.  Similar
   comments as above apply to the encodings.

1. Support has been added for `CTWM_WM_NAME` and `CTWM_WM_ICON_NAME`
   properties, which will override any window/icon names otherwise
   specified.  This may be useful for applications that set unhelpful
   names themselves, or for manually adjusting labelling.  These
   properties can be set from the command line via `xprop`; as an
   example, `xprop -f CTWM_WM_NAME 8u -set CTWM_WM_NAME "awesome
   windowsauce"`.  See `xprop(1)` manual for details; the `s`, `t`, and
   `u` field type specifiers will all work.

1. When no icon name is set for a window, we've always used the window
   name for the icon name as well.  But that only happened the first time
   the window name is set; after that, the icon name is stuck at the
   first name.  It now updates along with the window name, if no icon
   name is set.

1. All icon manager windows will now have the `TwmIconManager` class set
   on them, so they can be addressed en mass by other config like
   `NoTitle` by that class name.

### New Config Options

1. Added `DontNameDecorations` config option to disable setting names on
   the X windows we create for window decoration (added in 4.0.0).  These
   have been reported to confuse `xwit`, and might do the same for other
   tools that don't expect to find them on non-end-app windows.  Reported
   by Frank Steiner.

1. Added `StrictWinNameEncoding` config option to enable historical
   behavior, where we're reject invalid property encoding for window
   naming properties (like a `UTF8_STRING` encoded `WM_NAME`).

### Bugfixes

1. Fix up broken parsing of `IconifyStyle "sweep"`.  Bug was introduced
   in 4.0.0.

1. When multiple X Screens are used, 

CVS commit: xsrc/external/mit/ctwm/dist

2021-04-11 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Sun Apr 11 10:11:58 UTC 2021

Modified Files:
xsrc/external/mit/ctwm/dist: add_window.c add_window.h clicktofocus.c
clicktofocus.h ctwm.h cursor.c cursor.h events.h gc.c gc.h
gram.tab.h gram.y iconmgr.c iconmgr.h icons.c icons.h lex.l list.c
list.h menus.c menus.h mwmhints.c mwmhints.h parse.c parse.h
screen.h session.c session.h sound.c sound.h types.h util.c util.h
version.c version.h vscreen.c vscreen.h windowbox.c windowbox.h
Added Files:
xsrc/external/mit/ctwm/dist: ctwm.1 ctwm_atoms.c ctwm_atoms.h
ctwm_config.h event_names_table.h ewmh_atoms.c ewmh_atoms.h
functions_deferral.h functions_defs.h
functions_dispatch_execution.h functions_parse_table.h
Removed Files:
xsrc/external/mit/ctwm/dist: CHANGES Imakefile Imakefile.local-template
PROBLEMS README README.VMS README.gnome TODO TODO.gnome
ctwm.axp_opt ctwm.c ctwm.com ctwm.man ctwm.spec ctwm.txt
ctwm.vax_opt demolib.c descrip.local-template descrip.mms
descrip.submms events.c example.ctwmrc gendeftwmrc.com gnome.c
gnome.h gnomewindefs.h gram.c_VMS gram.h_VMS gtw.c levitte.ctwmrc
lex.c_VMS libctwm.c link.com lnm.c lnm.h make.com mk_tar.sh
peterc.ctwmrc resize.c resize.h siconify.bm sound.doc system.ctwmrc
system.ctwmrc.gnome twm.h vms.txt vms2.txt vms_cmd_services.c
vms_cmd_services.h workmgr.c workmgr.h

Log Message:
Merge ctwm-4-0-3

# CTWM Change History

## 4.0.3  (2019-07-21)

### Bugfixes

1. Perform various manipulations and overrides of `WM_HINTS` property
   when it gets reset during runtime, like we do when initially adopting
   the window.  The most visible effect of this was in windows that don't
   give a focus hint (which we override to give focus), but then reset
   `WM_HINTS` later and still don't give us a hint, where we wound up not
   re-overriding previously.  Reported for `xvile` by Wayne Cuddy.

1. The font height estimation changes in 4.0.0 were not applied correctly
   when UseThreeDMenus was set, leading to some odd vertical misalignment
   of the text with some fonts.  Reported by Wayne Cuddy.

1. A failure in OTP consistency checks caused by the handling of
   transients of fullscreen windows has been fixed.  This manifested as
   failures in OtpCheckConsistencyVS() assertions.

## 4.0.2  (2018-08-25)

### Backward-Incompatible Changes And Removed Features

1. The `UseThreeDIconBorders` config var has been removed.  It came in
   silently and undocumented in 3.4 and has never done anything.

1. The attempts to use DNS lookups for setting the `HOSTNAME` `m4` variable
   have been removed; it is now just a duplicate of `CLIENTHOST`.

### New Features

1. The EWMH `_NET_WM_NAME` property is now supported, and used for the
   window name in place of the ICCCM `WM_NAME` when set.  By default, we
   also accept `UTF8_STRING` encoded `WM_NAME` as a result of this
   change; see below for var to restore historical strictness.

1. The EWMH `_NET_WM_ICON_NAME` property is now supported, and used for
   the icon name in place of the ICCCM `WM_ICON_NAME` when set.  Similar
   comments as above apply to the encodings.

1. Support has been added for `CTWM_WM_NAME` and `CTWM_WM_ICON_NAME`
   properties, which will override any window/icon names otherwise
   specified.  This may be useful for applications that set unhelpful
   names themselves, or for manually adjusting labelling.  These
   properties can be set from the command line via `xprop`; as an
   example, `xprop -f CTWM_WM_NAME 8u -set CTWM_WM_NAME "awesome
   windowsauce"`.  See `xprop(1)` manual for details; the `s`, `t`, and
   `u` field type specifiers will all work.

1. When no icon name is set for a window, we've always used the window
   name for the icon name as well.  But that only happened the first time
   the window name is set; after that, the icon name is stuck at the
   first name.  It now updates along with the window name, if no icon
   name is set.

1. All icon manager windows will now have the `TwmIconManager` class set
   on them, so they can be addressed en mass by other config like
   `NoTitle` by that class name.

### New Config Options

1. Added `DontNameDecorations` config option to disable setting names on
   the X windows we create for window decoration (added in 4.0.0).  These
   have been reported to confuse `xwit`, and might do the same for other
   tools that don't expect to find them on non-end-app windows.  Reported
   by Frank Steiner.

1. Added `StrictWinNameEncoding` config option to enable historical
   behavior, where we're reject invalid property encoding for window
   naming properties (like a `UTF8_STRING` encoded `WM_NAME`).

### Bugfixes

1. Fix up broken parsing of `IconifyStyle "sweep"`.  Bug was introduced
   in 4.0.0.

1. When multiple X Screens are used, 

CVS commit: xsrc/external/mit/ctwm/dist

2021-03-02 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Mar  2 10:21:09 UTC 2021

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
Restore defaults.

The actual config now lives in src and we don't want merge conflicts.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2021-03-02 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Mar  2 10:21:09 UTC 2021

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
Restore defaults.

The actual config now lives in src and we don't want merge conflicts.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/system.ctwmrc
diff -u xsrc/external/mit/ctwm/dist/system.ctwmrc:1.8 xsrc/external/mit/ctwm/dist/system.ctwmrc:1.9
--- xsrc/external/mit/ctwm/dist/system.ctwmrc:1.8	Thu Sep 24 05:38:16 2020
+++ xsrc/external/mit/ctwm/dist/system.ctwmrc	Tue Mar  2 10:21:09 2021
@@ -1,383 +1,181 @@
 #
-# $NetBSD: system.ctwmrc,v 1.8 2020/09/24 05:38:16 nia Exp $
+# $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea Exp $
 #
-# ctwmrc by nia
+# Default twm configuration file; needs to be kept small to conserve string
+# space in systems whose compilers don't handle medium-sized strings.
 #
-# An attempt to strike a usability balance that makes keys and buttons
-# do the thing users of various operating systems expect them to do.
+# Sites should tailor this file, providing any extra title buttons, menus, etc.
+# that may be appropriate for their environment.  For example, if most of the
+# users were accustomed to uwm, the defaults could be set up not to decorate
+# any windows and to use meta-keys.
 #
-# Most things should be possible to accomplish with only the keyboard.
-#
-# Also, mostly inoffensive colours (avoiding potentially inaccessible
-# combinations like red-green).
-#
-
-# don't use the default buttons or key bindings, we define our own
-NoDefaults
-
-ShowWorkSpaceManager
-ShowIconManager
-
-# 3D icon managers do not seemingly honor IconManagerHighlight,
-# which makes them slightly less useful
-#UseThreeDIconManagers
-#UseThreeDWMap
-UseThreeDBorders
-#UseThreeDMenus
-UseThreeDTitles
-
-ThreeDBorderWidth 3
-
-# TODO: we can use syscmd() in combination with xdpyinfo to detect
-# HiDPI screens and set appropiate fonts.
-#
-# need some good scaled bitmap fonts imported - terminus or spleen
-# would be good candidates
-MenuFont "-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
-TitleFont"-misc-fixed-bold-r-*-*-18-*-*-*-*-*-*-*"
-IconManagerFont  "-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
-IconFont "-misc-fixed-bold-r-*-*-18-*-*-*-*-*-*-*"
-ResizeFont   "-misc-fixed-medium-r-*-*-18-*-*-*-*-*-*-*"
-WorkSpaceFont"-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
 
+NoGrabServer
 RestartPreviousState
-
 DecorateTransients
+TitleFont	"-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
+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-*-*-*"
+ShowWorkSpaceManager			# start with workspace manager up
+UseThreeDMenus
+UseThreeDTitles
+UseThreeDIconManagers
+UseThreeDBorders
+UseThreeDWMap
+SunkFocusWindowTitle
 
-# hide window contents while altering windows for performance
-NoOpaqueMove
-NoOpaqueResize
-
-SloppyFocus
-
-AutoOccupy
-AutoRelativeResize
-
-CenterFeedbackWindow
-
-NoGrabServer
-
-RaiseOnClick
-
-DontMoveOff
-MoveOffResistance	  150
-
-ConstrainedMoveTime   0
-
-IgnoreLockModifier
-
-# Not actually that random.
-# Means that windows do not have to be placed by hand with a mouse,
-# which helps if you are using a keyboard only.
-RandomPlacement  "on"
-
-MoveDelta 3
-ClearShadowContrast   50
-DarkShadowContrast50
-MovePackResistance100
-
-RaiseWhenAutoUnSqueeze
-ShortAllWindowsMenus
-
-#BeNiceToColorMap
-
-NoStackMode
-
-StayUpMenus
-WarpToDefaultMenuEntry
-MenuShadowDepth  1
-
-NoTitleFocus
-
-# warp through all windows in the current workspace
-WindowRing
-WarpRingOnScreen
-
-NoTitleHighlight
-
-TitleButtonShadowDepth1
-TitleShadowDepth  1
-TitleButtonBorderWidth0
-TitlePadding  0
-TitleJustification"left"
-ButtonIndent  0
-FramePadding		  0
-
-LeftTitleButton   ":xpm:dot"  = f.menu "titleops"
-RightTitleButton  ":xpm:resize"   = f.resize
-RightTitleButton  ":xpm:cross"= f.delete
-
-BorderWidth   4
-BorderShadowDepth 2
-BorderResizeCursors
-
-MaxIconTitleWidth 120
-NoIconManagerFocus
-IconManagerShadowDepth1
-IconManagerGeometry   "200x-1-1+0" 1
-IconifyByUnmapping
-
-ReallyMoveInWorkspaceManager
-MapWindowCurrentWorkSpace {  "black" "firebrick" }
-DontToggleWorkSpaceManagerState
-DontWarpCursorInWMap
-NoShowOccupyAll	
-ReverseCurrentWorkspace	
-StartInMapState
-WMgrHorizButtonIndent 0
-WMgrVertButtonIndent  0
-WorkSpaceManagerGeometry  "70x270-4-4" 1
-
-WorkSpaces 
-{
-"1"{ "lavender" 

CVS commit: xsrc/external/mit/ctwm/dist

2021-02-27 Thread Michael van Elst
Module Name:xsrc
Committed By:   mlelstv
Date:   Sat Feb 27 16:20:15 UTC 2021

Modified Files:
xsrc/external/mit/ctwm/dist: add_window.c

Log Message:
Use font height to compute height of resize popup for placing a window.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/add_window.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/add_window.c
diff -u xsrc/external/mit/ctwm/dist/add_window.c:1.1 xsrc/external/mit/ctwm/dist/add_window.c:1.2
--- xsrc/external/mit/ctwm/dist/add_window.c:1.1	Thu Sep  3 22:16:33 2015
+++ xsrc/external/mit/ctwm/dist/add_window.c	Sat Feb 27 16:20:15 2021
@@ -862,7 +862,7 @@ TwmWindow *AddWindow(Window w, int iconm
 			   tmp_win->name, namelen,
 			   _rect, _rect);
 	width = SIZE_HINDENT + ink_rect.width;
-	height = logical_rect.height + SIZE_VINDENT * 2;
+	height = Scr->SizeFont.height + SIZE_VINDENT * 2;
 	XmbTextExtents(Scr->SizeFont.font_set,
 			   ": ", 2,  _rect, _rect);
 	Scr->SizeStringOffset = width + logical_rect.width;



CVS commit: xsrc/external/mit/ctwm/dist

2021-02-27 Thread Michael van Elst
Module Name:xsrc
Committed By:   mlelstv
Date:   Sat Feb 27 16:20:15 UTC 2021

Modified Files:
xsrc/external/mit/ctwm/dist: add_window.c

Log Message:
Use font height to compute height of resize popup for placing a window.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/add_window.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-23 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Thu Sep 24 05:38:16 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
volume key bindings


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/system.ctwmrc
diff -u xsrc/external/mit/ctwm/dist/system.ctwmrc:1.7 xsrc/external/mit/ctwm/dist/system.ctwmrc:1.8
--- xsrc/external/mit/ctwm/dist/system.ctwmrc:1.7	Wed Sep 23 15:32:13 2020
+++ xsrc/external/mit/ctwm/dist/system.ctwmrc	Thu Sep 24 05:38:16 2020
@@ -1,5 +1,5 @@
 #
-# $NetBSD: system.ctwmrc,v 1.7 2020/09/23 15:32:13 nia Exp $
+# $NetBSD: system.ctwmrc,v 1.8 2020/09/24 05:38:16 nia Exp $
 #
 # ctwmrc by nia
 #
@@ -326,6 +326,10 @@ Button3 = mod4	: window 	: f.resize
 "8"  = mod4 : all : f.gotoworkspace "8"
 "9"  = mod4 : all : f.gotoworkspace "9"
 
+"XF86AudioRaiseVolume" = : all : !"mixerctl -w outputs.master+=5"
+"XF86AudioLowerVolume" = : all : !"mixerctl -w outputs.master-=5"
+"XF86AudioMute"= : all : !"mixerctl -w outputs.master=0"
+
 #
 # "Windows" style keyboard shortcuts
 #



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-23 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Thu Sep 24 05:38:16 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
volume key bindings


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-23 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Wed Sep 23 15:32:13 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
enable the ctwm applications menu


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-23 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Wed Sep 23 15:32:13 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
enable the ctwm applications menu


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/system.ctwmrc
diff -u xsrc/external/mit/ctwm/dist/system.ctwmrc:1.6 xsrc/external/mit/ctwm/dist/system.ctwmrc:1.7
--- xsrc/external/mit/ctwm/dist/system.ctwmrc:1.6	Wed Sep 23 07:02:58 2020
+++ xsrc/external/mit/ctwm/dist/system.ctwmrc	Wed Sep 23 15:32:13 2020
@@ -1,5 +1,5 @@
 #
-# $NetBSD: system.ctwmrc,v 1.6 2020/09/23 07:02:58 nia Exp $
+# $NetBSD: system.ctwmrc,v 1.7 2020/09/23 15:32:13 nia Exp $
 #
 # ctwmrc by nia
 #
@@ -195,15 +195,14 @@ menu "NetBSD"
 " Calculator"		!"xcalc &"
 " Clock"			!"xclock -digital &"
 " XEyes"			!"xeyes &"
-#""f.separator
-#" Applications"		f.menu "appmenu"
+""f.separator
+" Applications"		f.menu "appmenu"
 ""f.separator
 " Restart CTWM"		f.twmrc
 " Quit"			f.quit
 }
 
-# TODO: import and integrate this script
-#syscmd(/usr/X11R7/libexec/ctwm_menu)
+syscmd(/usr/X11R7/libexec/ctwm_app_menu)
 
 menu "titleops"
 {



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-23 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Wed Sep 23 07:02:59 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
fix syntax. it only wants the number of columns.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/system.ctwmrc
diff -u xsrc/external/mit/ctwm/dist/system.ctwmrc:1.5 xsrc/external/mit/ctwm/dist/system.ctwmrc:1.6
--- xsrc/external/mit/ctwm/dist/system.ctwmrc:1.5	Wed Sep 23 07:01:49 2020
+++ xsrc/external/mit/ctwm/dist/system.ctwmrc	Wed Sep 23 07:02:58 2020
@@ -1,5 +1,5 @@
 #
-# $NetBSD: system.ctwmrc,v 1.5 2020/09/23 07:01:49 nia Exp $
+# $NetBSD: system.ctwmrc,v 1.6 2020/09/23 07:02:58 nia Exp $
 #
 # ctwmrc by nia
 #
@@ -126,7 +126,7 @@ ReverseCurrentWorkspace	
 StartInMapState
 WMgrHorizButtonIndent 0
 WMgrVertButtonIndent  0
-WorkSpaceManagerGeometry  "70x270-4-4" 1 5
+WorkSpaceManagerGeometry  "70x270-4-4" 1
 
 WorkSpaces 
 {



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-23 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Wed Sep 23 07:02:59 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
fix syntax. it only wants the number of columns.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-23 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Wed Sep 23 07:01:49 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
fix syntax. ctwm does not use ,


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/system.ctwmrc
diff -u xsrc/external/mit/ctwm/dist/system.ctwmrc:1.4 xsrc/external/mit/ctwm/dist/system.ctwmrc:1.5
--- xsrc/external/mit/ctwm/dist/system.ctwmrc:1.4	Tue Sep 22 23:20:59 2020
+++ xsrc/external/mit/ctwm/dist/system.ctwmrc	Wed Sep 23 07:01:49 2020
@@ -1,5 +1,5 @@
 #
-# $NetBSD: system.ctwmrc,v 1.4 2020/09/22 23:20:59 nia Exp $
+# $NetBSD: system.ctwmrc,v 1.5 2020/09/23 07:01:49 nia Exp $
 #
 # ctwmrc by nia
 #
@@ -118,7 +118,7 @@ IconManagerGeometry   "200x-1-1+0" 1
 IconifyByUnmapping
 
 ReallyMoveInWorkspaceManager
-MapWindowCurrentWorkSpace {  "black", "firebrick" }
+MapWindowCurrentWorkSpace {  "black" "firebrick" }
 DontToggleWorkSpaceManagerState
 DontWarpCursorInWMap
 NoShowOccupyAll	



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-23 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Wed Sep 23 07:01:49 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
fix syntax. ctwm does not use ,


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-22 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Sep 22 23:20:59 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
avoid stippling effect in titlebars


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/system.ctwmrc
diff -u xsrc/external/mit/ctwm/dist/system.ctwmrc:1.3 xsrc/external/mit/ctwm/dist/system.ctwmrc:1.4
--- xsrc/external/mit/ctwm/dist/system.ctwmrc:1.3	Tue Sep 22 21:28:10 2020
+++ xsrc/external/mit/ctwm/dist/system.ctwmrc	Tue Sep 22 23:20:59 2020
@@ -1,5 +1,5 @@
 #
-# $NetBSD: system.ctwmrc,v 1.3 2020/09/22 21:28:10 nia Exp $
+# $NetBSD: system.ctwmrc,v 1.4 2020/09/22 23:20:59 nia Exp $
 #
 # ctwmrc by nia
 #
@@ -93,6 +93,8 @@ NoTitleFocus
 WindowRing
 WarpRingOnScreen
 
+NoTitleHighlight
+
 TitleButtonShadowDepth1
 TitleShadowDepth  1
 TitleButtonBorderWidth0



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-22 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Sep 22 23:20:59 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
avoid stippling effect in titlebars


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-22 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Sep 22 21:28:10 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
add menu entries for workspace occupation


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/system.ctwmrc
diff -u xsrc/external/mit/ctwm/dist/system.ctwmrc:1.2 xsrc/external/mit/ctwm/dist/system.ctwmrc:1.3
--- xsrc/external/mit/ctwm/dist/system.ctwmrc:1.2	Tue Sep 22 21:08:56 2020
+++ xsrc/external/mit/ctwm/dist/system.ctwmrc	Tue Sep 22 21:28:10 2020
@@ -1,5 +1,5 @@
 #
-# $NetBSD: system.ctwmrc,v 1.2 2020/09/22 21:08:56 nia Exp $
+# $NetBSD: system.ctwmrc,v 1.3 2020/09/22 21:28:10 nia Exp $
 #
 # ctwmrc by nia
 #
@@ -211,6 +211,9 @@ menu "titleops"
 " Resize"  f.resize
 " Move"f.move
 "" f.separator
+" Occupy ..."  f.occupy
+" Occupy All"  f.occupyall
+"" f.separator
 " Raise"   f.raise
 " Lower"   f.lower
 "" f.separator



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-22 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Sep 22 21:28:10 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
add menu entries for workspace occupation


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-22 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Sep 22 21:08:56 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
replace default ctwmrc by mine from tech-x11


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2020-09-22 Thread Nia Alarie
Module Name:xsrc
Committed By:   nia
Date:   Tue Sep 22 21:08:56 UTC 2020

Modified Files:
xsrc/external/mit/ctwm/dist: system.ctwmrc

Log Message:
replace default ctwmrc by mine from tech-x11


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/system.ctwmrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/system.ctwmrc
diff -u xsrc/external/mit/ctwm/dist/system.ctwmrc:1.1 xsrc/external/mit/ctwm/dist/system.ctwmrc:1.2
--- xsrc/external/mit/ctwm/dist/system.ctwmrc:1.1	Thu Sep  3 22:16:33 2015
+++ xsrc/external/mit/ctwm/dist/system.ctwmrc	Tue Sep 22 21:08:56 2020
@@ -1,181 +1,375 @@
 #
-# $XConsortium: system.twmrc,v 1.8 91/04/23 21:10:58 gildea Exp $
+# $NetBSD: system.ctwmrc,v 1.2 2020/09/22 21:08:56 nia Exp $
 #
-# Default twm configuration file; needs to be kept small to conserve string
-# space in systems whose compilers don't handle medium-sized strings.
+# ctwmrc by nia
 #
-# Sites should tailor this file, providing any extra title buttons, menus, etc.
-# that may be appropriate for their environment.  For example, if most of the
-# users were accustomed to uwm, the defaults could be set up not to decorate
-# any windows and to use meta-keys.
+# An attempt to strike a usability balance that makes keys and buttons
+# do the thing users of various operating systems expect them to do.
+#
+# Most things should be possible to accomplish with only the keyboard.
+#
+# Also, mostly inoffensive colours (avoiding potentially inaccessible
+# combinations like red-green).
 #
 
-NoGrabServer
+# don't use the default buttons or key bindings, we define our own
+NoDefaults
+
+ShowWorkSpaceManager
+ShowIconManager
+
+# 3D icon managers do not seemingly honor IconManagerHighlight,
+# which makes them slightly less useful
+#UseThreeDIconManagers
+#UseThreeDWMap
+UseThreeDBorders
+#UseThreeDMenus
+UseThreeDTitles
+
+ThreeDBorderWidth 3
+
+# TODO: we can use syscmd() in combination with xdpyinfo to detect
+# HiDPI screens and set appropiate fonts.
+#
+# need some good scaled bitmap fonts imported - terminus or spleen
+# would be good candidates
+MenuFont "-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
+TitleFont"-misc-fixed-bold-r-*-*-18-*-*-*-*-*-*-*"
+IconManagerFont  "-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
+IconFont "-misc-fixed-bold-r-*-*-18-*-*-*-*-*-*-*"
+ResizeFont   "-misc-fixed-medium-r-*-*-18-*-*-*-*-*-*-*"
+WorkSpaceFont"-misc-fixed-medium-r-*-*-14-*-*-*-*-*-*-*"
+
 RestartPreviousState
+
 DecorateTransients
-TitleFont	"-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
-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-*-*-*"
-ShowWorkSpaceManager			# start with workspace manager up
-UseThreeDMenus
-UseThreeDTitles
-UseThreeDIconManagers
-UseThreeDBorders
-UseThreeDWMap
-SunkFocusWindowTitle
 
-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"}
+# hide window contents while altering windows for performance
+NoOpaqueMove
+NoOpaqueResize
+
+SloppyFocus
+
+AutoOccupy
+AutoRelativeResize
+
+CenterFeedbackWindow
+
+NoGrabServer
+
+RaiseOnClick
+
+DontMoveOff
+MoveOffResistance	  150
+
+ConstrainedMoveTime   0
+
+IgnoreLockModifier
+
+# Not actually that random.
+# Means that windows do not have to be placed by hand with a mouse,
+# which helps if you are using a keyboard only.
+RandomPlacement  "on"
+
+MoveDelta 3
+ClearShadowContrast   50
+DarkShadowContrast50
+MovePackResistance100
+
+RaiseWhenAutoUnSqueeze
+ShortAllWindowsMenus
+
+#BeNiceToColorMap
+
+NoStackMode
+
+StayUpMenus
+WarpToDefaultMenuEntry
+MenuShadowDepth  1
+
+NoTitleFocus
+
+# warp through all windows in the current workspace
+WindowRing
+WarpRingOnScreen
+
+TitleButtonShadowDepth1
+TitleShadowDepth  1
+TitleButtonBorderWidth0
+TitlePadding  0
+TitleJustification"left"
+ButtonIndent  0
+FramePadding		  0
+
+LeftTitleButton   ":xpm:dot"  = f.menu "titleops"
+RightTitleButton  ":xpm:resize"   = f.resize
+RightTitleButton  ":xpm:cross"= f.delete
+
+BorderWidth   4
+BorderShadowDepth 2
+BorderResizeCursors
+
+MaxIconTitleWidth 120
+NoIconManagerFocus
+IconManagerShadowDepth 

CVS commit: xsrc/external/mit/ctwm/dist

2019-02-06 Thread Roy Marples
Module Name:xsrc
Committed By:   roy
Date:   Wed Feb  6 16:38:23 UTC 2019

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
modStr needs to be 6 characters to avoid overflow.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.8 xsrc/external/mit/ctwm/dist/menus.c:1.9
--- xsrc/external/mit/ctwm/dist/menus.c:1.8	Sat Sep  5 14:27:43 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Wed Feb  6 16:38:23 2019
@@ -1532,7 +1532,7 @@ Bool PopUpMenu (MenuRoot *menu, int x, i
 if (menu == Scr->Keys) {
 	FuncKey *tmpKey;
 	char *tmpStr, *tmpStr2;
-	char modStr[5];
+	char modStr[6];
 	char *oldact = 0;
 	int oldmod = 0;
 	int tmpLen;



CVS commit: xsrc/external/mit/ctwm/dist

2019-02-06 Thread Roy Marples
Module Name:xsrc
Committed By:   roy
Date:   Wed Feb  6 16:38:23 UTC 2019

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
modStr needs to be 6 characters to avoid overflow.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2017-01-10 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Tue Jan 10 21:53:06 UTC 2017

Modified Files:
xsrc/external/mit/ctwm/dist: session.c

Log Message:
need  for umask


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/session.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2017-01-10 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Tue Jan 10 21:53:06 UTC 2017

Modified Files:
xsrc/external/mit/ctwm/dist: session.c

Log Message:
need  for umask


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/session.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/session.c
diff -u xsrc/external/mit/ctwm/dist/session.c:1.3 xsrc/external/mit/ctwm/dist/session.c:1.4
--- xsrc/external/mit/ctwm/dist/session.c:1.3	Sun Apr 24 14:27:03 2016
+++ xsrc/external/mit/ctwm/dist/session.c	Tue Jan 10 16:53:06 2017
@@ -120,6 +120,7 @@
 #endif
 #endif
 #endif /* PATH_MAX */
+#include 
 
 #include 
 #include 



CVS commit: xsrc/external/mit/ctwm/dist

2016-04-24 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sun Apr 24 18:27:03 UTC 2016

Modified Files:
xsrc/external/mit/ctwm/dist: session.c

Log Message:
CID 1358680: Set umask before mkstemp


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/session.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/session.c
diff -u xsrc/external/mit/ctwm/dist/session.c:1.2 xsrc/external/mit/ctwm/dist/session.c:1.3
--- xsrc/external/mit/ctwm/dist/session.c:1.2	Wed Apr 13 18:25:57 2016
+++ xsrc/external/mit/ctwm/dist/session.c	Sun Apr 24 14:27:03 2016
@@ -859,7 +859,12 @@ static FILE *unique_file (char **filenam
 fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600);
 } while ((fd == -1) && (errno == EEXIST || errno == EINTR));
 #else
-if ((fd = mkstemp(tmp)) == -1)
+{
+	int omask = umask(077);
+	fd = mkstemp(tmp);
+	umask(omask);
+}
+if (fd == -1)
 	return NULL;
 #endif
 if ((fp = fdopen(fd, "wb")) == NULL)



CVS commit: xsrc/external/mit/ctwm/dist

2016-04-24 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sun Apr 24 18:27:03 UTC 2016

Modified Files:
xsrc/external/mit/ctwm/dist: session.c

Log Message:
CID 1358680: Set umask before mkstemp


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/session.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2016-04-13 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Wed Apr 13 22:25:58 UTC 2016

Modified Files:
xsrc/external/mit/ctwm/dist: session.c

Log Message:
use mkstemp/mktemp


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/session.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/session.c
diff -u xsrc/external/mit/ctwm/dist/session.c:1.1 xsrc/external/mit/ctwm/dist/session.c:1.2
--- xsrc/external/mit/ctwm/dist/session.c:1.1	Thu Sep  3 18:16:33 2015
+++ xsrc/external/mit/ctwm/dist/session.c	Wed Apr 13 18:25:57 2016
@@ -840,29 +840,32 @@ int GetWindowConfig (TwmWindow *theWindo
 
 /*===[ Unique Filename Generator ]===*/
 
-static char *unique_filename (char *path, char *prefix)
-/* this function attempts to allocate a temporary filename to store the 
+static FILE *unique_file (char **filename, char *path, char *prefix)
+/* this function attempts to allocate a temporary file to store the 
  * information of the windows
  */
 {
-
-#ifndef X_NOT_POSIX
-return ((char *) tempnam (path, prefix));
+int fd;
+char tmp[PATH_MAX], template[PATH_MAX];
+FILE *fp;
+
+snprintf(tmp, sizeof(tmp), "%s/%sXX", path, prefix);
+#ifndef HAVE_MKSTEMP
+do {
+if (fd == -1)
+strcpy(template, tmp);
+if ((mktemp(template) == NULL) || (template[0] == '\0'))
+return NULL;
+fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600);
+} while ((fd == -1) && (errno == EEXIST || errno == EINTR));
 #else
-char tempFile[PATH_MAX];
-char *tmp;
-
-sprintf (tempFile, "%s/%sXX", path, prefix);
-tmp = (char *) mktemp (tempFile);
-if (tmp)
-{
-	char *ptr = (char *) malloc (strlen (tmp) + 1);
-	strcpy (ptr, tmp);
-	return (ptr);
-}
-else
-	return (NULL);
+if ((fd = mkstemp(tmp)) == -1)
+	return NULL;
 #endif
+if ((fp = fdopen(fd, "wb")) == NULL)
+	close(fd);
+*filename = strdup(template);
+return fp;
 }
 
 /*===[ SAVE WINDOW INFORMATION ]=*/
@@ -942,10 +945,7 @@ void SaveYourselfPhase2CB (SmcConn smcCo
  *no longer the same since the new format supports
  *virtaul workspaces.
  **/
-if ((filename = unique_filename (path, ".ctwm")) == NULL)
-	goto bad;
-
-if (!(configFile = fopen (filename, "wb"))) /* wb = write bytes ? */
+if ((configFile = unique_file (, path, ".ctwm")) == NULL)
 	goto bad;
 
 if (!write_ushort (configFile, SAVEFILE_VERSION))



CVS commit: xsrc/external/mit/ctwm/dist

2016-04-13 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Wed Apr 13 22:25:58 UTC 2016

Modified Files:
xsrc/external/mit/ctwm/dist: session.c

Log Message:
use mkstemp/mktemp


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/session.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-11-10 Thread Jared D. McNeill
Module Name:xsrc
Committed By:   jmcneill
Date:   Tue Nov 10 23:56:43 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: util.c

Log Message:
if CTWM_WELCOME_FILE is defined, try that before falling back to welcome.xwd 
and .xpm


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/util.c
diff -u xsrc/external/mit/ctwm/dist/util.c:1.3 xsrc/external/mit/ctwm/dist/util.c:1.4
--- xsrc/external/mit/ctwm/dist/util.c:1.3	Sat Sep  5 14:29:39 2015
+++ xsrc/external/mit/ctwm/dist/util.c	Tue Nov 10 23:56:43 2015
@@ -908,6 +908,10 @@ void MaskScreen (char *file)
 reportfilenotfound = 0;
 AlternateCmap = Scr->WelcomeCmap;
 if (! file) {
+#ifdef CTWM_WELCOME_FILE
+	Scr->WelcomeImage  = GetImage (CTWM_WELCOME_FILE, WelcomeCp);
+	if (Scr->WelcomeImage == None)
+#endif
 	Scr->WelcomeImage  = GetImage ("xwd:welcome.xwd", WelcomeCp);
 #ifdef XPM
 	if (Scr->WelcomeImage == None)



CVS commit: xsrc/external/mit/ctwm/dist

2015-11-10 Thread Jared D. McNeill
Module Name:xsrc
Committed By:   jmcneill
Date:   Tue Nov 10 23:56:43 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: util.c

Log Message:
if CTWM_WELCOME_FILE is defined, try that before falling back to welcome.xwd 
and .xpm


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-10-10 Thread Marc Balmer
Module Name:xsrc
Committed By:   mbalmer
Date:   Sat Oct 10 09:08:11 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: README

Log Message:
fox wording and typos


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-10-10 Thread Marc Balmer
Module Name:xsrc
Committed By:   mbalmer
Date:   Sat Oct 10 09:08:11 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: README

Log Message:
fox wording and typos


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/README
diff -u xsrc/external/mit/ctwm/dist/README:1.1 xsrc/external/mit/ctwm/dist/README:1.2
--- xsrc/external/mit/ctwm/dist/README:1.1	Thu Sep  3 22:16:33 2015
+++ xsrc/external/mit/ctwm/dist/README	Sat Oct 10 09:08:11 2015
@@ -2,20 +2,20 @@

 
 
-CTWM is an extension to twm, originally written by Claude Lecommandeur
-that support multiple virtual screens, and a lot of other goodies.
+CTWM is an extension to twm, originally written by Claude Lecommandeur,
+that supports multiple virtual screens, and a lot of other goodies.
 
 You can use and manage up to 32 virtual screens called workspaces.
 You swap from one workspace to another by clicking on a button in an
-optionnal panel of buttons (the workspace manager) or by invoking a
+optional panel of buttons (the workspace manager) or by invoking a
 function.
 
-You can custom each workspace by choosing different colors, names and
+You can customize each workspace by choosing different colors, names and
 pixmaps for the buttons and background root windows.
 
 Main features are :
 
- - Optional 3D window titles and border (ala Motif).
+ - Optional 3D window titles and borders (ala Motif).
  - Shaped, colored icons.
  - Multiple icons for clients based on the icon name.
  - Windows can belong to several workspaces.
@@ -25,7 +25,7 @@ Main features are :
  - Pinnable and sticky menus.
  - etc...
 
-The sources files were once the twm ones with only workmgr.[ch] added
+The source files were once the twm ones with only workmgr.[ch] added
 (written from scratch by Claude Lecommandeur).  There were also some
 modifications to some twm files.  This was back in CTWM version 1, by
 now, there are a bit more changes and a few more additions.  It's
@@ -40,7 +40,7 @@ please send a report to the mailing list
 
 Configuration:
 
-Ctwm is built using xmkmf, which read Imakefile.  That file includes
+Ctwm is built using xmkmf, which reads Imakefile.  That file includes
 Imakefile.local, which is meant for local configuration, and *WHICH YOU
 MUST CREATE*.  For your comfort, the file Imakefile.local-template can
 simply be copied to Imakefile.local, then changed.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 08:04:48 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: parse.c

Log Message:
CID 1322881: check error return of pipe(2)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/parse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/parse.c
diff -u xsrc/external/mit/ctwm/dist/parse.c:1.1 xsrc/external/mit/ctwm/dist/parse.c:1.2
--- xsrc/external/mit/ctwm/dist/parse.c:1.1	Thu Sep  3 18:16:33 2015
+++ xsrc/external/mit/ctwm/dist/parse.c	Sat Sep  5 04:04:48 2015
@@ -2125,7 +2125,10 @@ static FILE *start_m4(FILE *fraw)
 
 fno = fileno(fraw);
 /* if (-1 == fcntl(fno, F_SETFD, 0)) perror("fcntl()"); */
-pipe(fids);
+if (pipe(fids) < 0) {
+perror("Pipe for " M4CMD " failed");
+exit(23);
+	}
 fres = fork();
 if (fres < 0) {
 perror("Fork for " M4CMD " failed");



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 08:04:48 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: parse.c

Log Message:
CID 1322881: check error return of pipe(2)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/parse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 08:06:25 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 13222882: ignore return


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.2 xsrc/external/mit/ctwm/dist/menus.c:1.3
--- xsrc/external/mit/ctwm/dist/menus.c:1.2	Fri Sep  4 16:51:07 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 04:06:25 2015
@@ -1819,7 +1819,7 @@ void resizeFromCenter(Window w, TwmWindo
 	}
   
   if (Event.type != MotionNotify) {
-	DispatchEvent2 ();
+	(void)DispatchEvent2 ();
 	continue;
   }
   



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 08:07:53 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322883: check error return from XFindContext


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.3 xsrc/external/mit/ctwm/dist/menus.c:1.4
--- xsrc/external/mit/ctwm/dist/menus.c:1.3	Sat Sep  5 04:06:25 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 04:07:53 2015
@@ -785,7 +785,9 @@ int UpdateMenu(void)
 	if (ActiveMenu && !ActiveMenu->entered)
 	continue;
 
-	XFindContext(dpy, ActiveMenu->w, ScreenContext, (XPointer *));
+	if (XFindContext(dpy, ActiveMenu->w, ScreenContext, (XPointer *))
+	!= XCSUCCESS)
+	continue;
 
 	if (x < 0 || y < 0 ||
 	x >= ActiveMenu->width || y >= ActiveMenu->height)



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 08:06:25 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 13222882: ignore return


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 08:07:53 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322883: check error return from XFindContext


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:24:08 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: events.c

Log Message:
CID 1322897: Add missing FALLTHROUGH comment


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/events.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:08:55 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: util.c

Log Message:
cID 1322887: Fix bogus NULL check and deref.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/util.c
diff -u xsrc/external/mit/ctwm/dist/util.c:1.1 xsrc/external/mit/ctwm/dist/util.c:1.2
--- xsrc/external/mit/ctwm/dist/util.c:1.1	Thu Sep  3 18:16:33 2015
+++ xsrc/external/mit/ctwm/dist/util.c	Sat Sep  5 10:08:55 2015
@@ -2879,11 +2879,14 @@ void PaintTitleButton (TwmWindow *tmp_wi
 void PaintTitleButtons (TwmWindow *tmp_win)
 {
 int i;
-TBWindow *tbw;
+TBWindow *tbw = tmp_win->titlebuttons;
 int nb = Scr->TBInfo.nleft + Scr->TBInfo.nright;
 
-for (i = 0, tbw = tmp_win->titlebuttons; i < nb; i++, tbw++) {
-	if (tbw) PaintTitleButton (tmp_win, tbw);
+if (tbw == NULL)
+	return;
+
+for (i = 0, i < nb; i++, tbw++) {
+	PaintTitleButton (tmp_win, tbw);
 }
 }
 



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:08:55 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: util.c

Log Message:
cID 1322887: Fix bogus NULL check and deref.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:29:39 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: util.c

Log Message:
fix typo.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/util.c
diff -u xsrc/external/mit/ctwm/dist/util.c:1.2 xsrc/external/mit/ctwm/dist/util.c:1.3
--- xsrc/external/mit/ctwm/dist/util.c:1.2	Sat Sep  5 10:08:55 2015
+++ xsrc/external/mit/ctwm/dist/util.c	Sat Sep  5 10:29:39 2015
@@ -2885,7 +2885,7 @@ void PaintTitleButtons (TwmWindow *tmp_w
 if (tbw == NULL)
 	return;
 
-for (i = 0, i < nb; i++, tbw++) {
+for (i = 0; i < nb; i++, tbw++) {
 	PaintTitleButton (tmp_win, tbw);
 }
 }



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:29:39 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: util.c

Log Message:
fix typo.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:06:21 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322886: Avoid null pointer dereference (missing continue)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.5 xsrc/external/mit/ctwm/dist/menus.c:1.6
--- xsrc/external/mit/ctwm/dist/menus.c:1.5	Sat Sep  5 10:03:11 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 10:06:21 2015
@@ -479,6 +479,7 @@ void InitTitlebarButtons (void)
 	if (!tb->image) {		/* cannot happen (see util.c) */
 		fprintf (stderr, "%s:  unable to add titlebar button \"%s\"\n",
 			 ProgramName, tb->name);
+		continue;
 	}
 	}
 	tb->width  = tb->image->width;



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:06:21 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322886: Avoid null pointer dereference (missing continue)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:27:43 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322893: Add missing NULL check


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.7 xsrc/external/mit/ctwm/dist/menus.c:1.8
--- xsrc/external/mit/ctwm/dist/menus.c:1.7	Sat Sep  5 10:11:26 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 10:27:43 2015
@@ -4077,7 +4077,7 @@ void DeIconify(TwmWindow *tmp_win)
 /* de-iconify the main window */
 if (Scr->WindowMask)
 	XRaiseWindow (dpy, Scr->WindowMask);
-if (tmp_win->isicon)
+if (tmp_win && tmp_win->isicon)
 {
 	isicon = TRUE;
 	if (tmp_win->icon_on && tmp_win->icon && tmp_win->icon->w)



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:27:43 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322893: Add missing NULL check


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:11:26 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322888: Fix NULL pointer check


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.6 xsrc/external/mit/ctwm/dist/menus.c:1.7
--- xsrc/external/mit/ctwm/dist/menus.c:1.6	Sat Sep  5 10:06:21 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 10:11:26 2015
@@ -4123,10 +4123,10 @@ static void UnmapTransients(TwmWindow *t
 	if (t != tmp_win &&
 		((t->transient && t->transientfor == tmp_win->w) ||
 		 t->group == tmp_win->w)) {
-	if (iconify) {
+	if (iconify && tmp_win->icon) {
 		if (t->icon_on)
 		Zoom(t->icon->w, tmp_win->icon->w);
-		else if (tmp_win->icon)
+		else 
 		Zoom(t->frame, tmp_win->icon->w);
 	}
 



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:11:26 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322888: Fix NULL pointer check


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:25:26 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: workmgr.c

Log Message:
CID 1322895: Missing break


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/workmgr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/workmgr.c
diff -u xsrc/external/mit/ctwm/dist/workmgr.c:1.2 xsrc/external/mit/ctwm/dist/workmgr.c:1.3
--- xsrc/external/mit/ctwm/dist/workmgr.c:1.2	Sat Sep  5 10:14:24 2015
+++ xsrc/external/mit/ctwm/dist/workmgr.c	Sat Sep  5 10:25:26 2015
@@ -2718,7 +2718,7 @@ void WMgrHandleButtonEvent (virtualScree
 switch (button) {
 	case 1 :
 	XUnmapWindow (dpy, sw);
-
+	break;
 	case 2 :
 	XGetGeometry (dpy, sw, , , , , , , );
 	XTranslateCoordinates (dpy, vs->wsw->mswl [oldws->number]->w,



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:24:08 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: events.c

Log Message:
CID 1322897: Add missing FALLTHROUGH comment


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/events.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/events.c
diff -u xsrc/external/mit/ctwm/dist/events.c:1.2 xsrc/external/mit/ctwm/dist/events.c:1.3
--- xsrc/external/mit/ctwm/dist/events.c:1.2	Sat Sep  5 10:17:36 2015
+++ xsrc/external/mit/ctwm/dist/events.c	Sat Sep  5 10:24:08 2015
@@ -1123,6 +1123,7 @@ void HandleKeyPress(void)
 			break;
 		case ' ' :
 			offset = 1;
+			/*FALLTHROUGH*/
 		default :
 			if (((Scr->IgnoreCaseInMenuSelection) &&
 			(keynam [0] == Tolower (item->item [offset]))) ||



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:25:26 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: workmgr.c

Log Message:
CID 1322895: Missing break


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 xsrc/external/mit/ctwm/dist/workmgr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:03:11 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322884: Annotate random use


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:04:41 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: vscreen.c

Log Message:
CID 1322885: Comment out dead code


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/vscreen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:04:41 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: vscreen.c

Log Message:
CID 1322885: Comment out dead code


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/vscreen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/vscreen.c
diff -u xsrc/external/mit/ctwm/dist/vscreen.c:1.1 xsrc/external/mit/ctwm/dist/vscreen.c:1.2
--- xsrc/external/mit/ctwm/dist/vscreen.c:1.1	Thu Sep  3 18:16:33 2015
+++ xsrc/external/mit/ctwm/dist/vscreen.c	Sat Sep  5 10:04:41 2015
@@ -55,11 +55,13 @@ void InitVirtualScreens (ScreenInfo *scr
   scr->vScreenList = vs;
   scr->currentvs   = vs;
   return;
+#if 0
 } else {
   scr->VirtualScreens = (name_list*) malloc (sizeof (name_list));
   scr->VirtualScreens->next = NULL;
   scr->VirtualScreens->name = (char*) malloc (64);
   sprintf (scr->VirtualScreens->name, "%dx%d+0+0", scr->rootw, scr->rooth);
+#endif
 }
   }
 



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:03:11 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322884: Annotate random use


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.4 xsrc/external/mit/ctwm/dist/menus.c:1.5
--- xsrc/external/mit/ctwm/dist/menus.c:1.4	Sat Sep  5 04:07:53 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 10:03:11 2015
@@ -5003,7 +5003,9 @@ void MosaicFade (TwmWindow *tmp_win, Win
 }
 for (i = 0; i < 10; i++) {
 	for (j = 0; j < nrects; j++) {
+	/* coverity[dc.weak_crypto] */
 	rectangles [j].x = ((lrand48 () %  width) / srect) * srect;
+	/* coverity[dc.weak_crypto] */
 	rectangles [j].y = ((lrand48 () % height) / srect) * srect;
 	}
 	XFillRectangles (dpy, mask, gc, rectangles, nrects);



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:14:24 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: workmgr.c

Log Message:
CID 1322889: Missing check for NULL


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/workmgr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/workmgr.c
diff -u xsrc/external/mit/ctwm/dist/workmgr.c:1.1 xsrc/external/mit/ctwm/dist/workmgr.c:1.2
--- xsrc/external/mit/ctwm/dist/workmgr.c:1.1	Thu Sep  3 18:16:33 2015
+++ xsrc/external/mit/ctwm/dist/workmgr.c	Sat Sep  5 10:14:24 2015
@@ -1340,7 +1340,7 @@ static void DisplayWin (virtualScreen *v
 	if (tmp_win->isicon) {
 	if (tmp_win->icon_on) {
 		if (tmp_win->icon && tmp_win->icon->w) {
-		if (vs != tmp_win->old_parent_vs) {
+		if (vs && vs != tmp_win->old_parent_vs) {
 			int x, y;
 			unsigned int junk;
 			Window junkW, w = tmp_win->icon->w;
@@ -1370,7 +1370,7 @@ static void DisplayWin (virtualScreen *v
 	XMapWindow   (dpy, tmp_win->w);
 	XSelectInput (dpy, tmp_win->w, eventMask);
 	}
-	if (vs != tmp_win->old_parent_vs) {
+	if (vs && vs != tmp_win->old_parent_vs) {
 	XReparentWindow (dpy, tmp_win->frame, vs->window, tmp_win->frame_x, tmp_win->frame_y);
 	}
 	XMapWindow (dpy, tmp_win->frame);



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:17:36 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: events.c

Log Message:
CID 1322890: Add missing NULL checks


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/events.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/events.c
diff -u xsrc/external/mit/ctwm/dist/events.c:1.1 xsrc/external/mit/ctwm/dist/events.c:1.2
--- xsrc/external/mit/ctwm/dist/events.c:1.1	Thu Sep  3 18:16:33 2015
+++ xsrc/external/mit/ctwm/dist/events.c	Sat Sep  5 10:17:36 2015
@@ -3085,14 +3085,16 @@ void HandleButtonPress(void)
 		((Event.xany.window == Tmp_win->iconmanagerlist->icon) ||
 		 (Event.xany.window == Tmp_win->iconmanagerlist->w))) {
 	Tmp_win = Tmp_win->iconmanagerlist->iconmgr->twm_win;
-	XTranslateCoordinates(dpy, Event.xany.window, Tmp_win->w,
-		Event.xbutton.x, Event.xbutton.y, 
-		, , );
-
-	Event.xbutton.x = JunkX - Tmp_win->frame_bw3D;
-	Event.xbutton.y = JunkY - Tmp_win->title_height - Tmp_win->frame_bw3D;
-	Event.xany.window = Tmp_win->w;
-	Context = C_WINDOW;
+	if (Tmp_win) {
+		XTranslateCoordinates(dpy, Event.xany.window, Tmp_win->w,
+		Event.xbutton.x, Event.xbutton.y, 
+		, , );
+
+		Event.xbutton.x = JunkX - Tmp_win->frame_bw3D;
+		Event.xbutton.y = JunkY - Tmp_win->title_height - Tmp_win->frame_bw3D;
+		Event.xany.window = Tmp_win->w;
+		Context = C_WINDOW;
+	}
 	}
 	else if (Event.xany.window == Tmp_win->title_w) {
 	if (Scr->ClickToFocus &&
@@ -3199,7 +3201,7 @@ void HandleButtonPress(void)
 
 	if (Event.xany.window != 0 &&
 		(Tmp_win = GetTwmWindow(Event.xany.window))) {
-		if (Tmp_win->iswinbox) {
+		if (Tmp_win && Tmp_win->iswinbox) {
 		XTranslateCoordinates (dpy, Scr->Root, Event.xany.window,
 			JunkX, JunkY,  , , );
 		XTranslateCoordinates (dpy, Event.xany.window, win,



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:17:36 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: events.c

Log Message:
CID 1322890: Add missing NULL checks


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/events.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-05 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Sat Sep  5 14:14:24 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: workmgr.c

Log Message:
CID 1322889: Missing check for NULL


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/workmgr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-04 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Fri Sep  4 20:51:07 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 461508: memory leak


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.1 xsrc/external/mit/ctwm/dist/menus.c:1.2
--- xsrc/external/mit/ctwm/dist/menus.c:1.1	Thu Sep  3 18:16:33 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Fri Sep  4 16:51:07 2015
@@ -3532,6 +3532,7 @@ int ExecuteFunction(int func, void *acti
 	fprintf (stderr, "%s:  unable to open file \"%s\"\n", 
 		 ProgramName, (char *)action);
 	}
+	free(action);
 	break;
 
 case F_REFRESH:



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-04 Thread Christos Zoulas
Module Name:xsrc
Committed By:   christos
Date:   Fri Sep  4 20:51:07 UTC 2015

Modified Files:
xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 461508: memory leak


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/ctwm/dist

2015-09-03 Thread Youri Mouton
Module Name:xsrc
Committed By:   youri
Date:   Thu Sep  3 22:16:33 UTC 2015

Added Files:
xsrc/external/mit/ctwm/dist: CHANGES Imakefile Imakefile.local-template
PROBLEMS README README.VMS README.gnome TODO TODO.gnome
add_window.c add_window.h clicktofocus.c clicktofocus.h
ctwm.axp_opt ctwm.c ctwm.com ctwm.h ctwm.man ctwm.spec ctwm.txt
ctwm.vax_opt cursor.c cursor.h deftwmrc.c demolib.c
descrip.local-template descrip.mms descrip.submms events.c events.h
example.ctwmrc gc.c gc.h gendeftwmrc.com gnome.c gnome.h
gnomewindefs.h gram.c_VMS gram.h_VMS gram.tab.c gram.tab.h gram.y
gtw.c iconmgr.c iconmgr.h icons.c icons.h levitte.ctwmrc lex.c
lex.c_VMS lex.l libctwm.c link.com list.c list.h lnm.c lnm.h
make.com menus.c menus.h mk_tar.sh mwmhints.c mwmhints.h parse.c
parse.h peterc.ctwmrc resize.c resize.h screen.h session.c
session.h siconify.bm sound.c sound.doc sound.h system.ctwmrc
system.ctwmrc.gnome twm.h types.h util.c util.h version.c version.h
vms.txt vms2.txt vms_cmd_services.c vms_cmd_services.h vscreen.c
vscreen.h windowbox.c windowbox.h workmgr.c workmgr.h
xsrc/external/mit/ctwm/dist/xpm: 3D_Expand15.xpm 3D_Iconify15.xpm
3D_Lightning15.xpm 3D_Menu15.xpm 3D_Resize15.xpm 3D_Zoom15.xpm
3dcircle.xpm 3ddimple.xpm 3ddot.xpm 3dfeet.xpm 3dleopard.xpm
3dpie.xpm 3dpyramid.xpm 3dslant.xpm IslandD.xpm IslandW.xpm
LRom.xpm LRom1.xpm arthur.xpm audio_editor.xpm background1.xpm
background2.xpm background3.xpm background4.xpm background5.xpm
background6.xpm background7.xpm background8.xpm background9.xpm
ball1.xpm ball10.xpm ball11.xpm ball12.xpm ball2.xpm ball3.xpm
ball4.xpm ball5.xpm ball6.xpm ball7.xpm ball8.xpm ball9.xpm
cdrom1.xpm claude.xpm clipboard.xpm datebook.xpm emacs.xpm
ghostview.xpm hpterm.xpm mail0.xpm mail1.xpm nothing.xpm nt1.xpm
nt2.xpm pixmap.xpm postit.xpm skull.xpm spider.xpm supman1.xbm
supman2.xbm supman3.xbm supman4.xbm supman5.xbm supman6.xbm
supman7.xbm supman8.xbm supman9.xbm term.xpm unknown.xpm
unknown1.xpm unread.xpm welcome.xpm welcome.xwd xarchie.xpm
xcalc.xpm xcalc2.xpm xedit.xpm xftp.xpm xgopher.xpm xgrab.xpm
xhpcalc.xpm xirc.xpm xmail.xpm xman.xpm xmosaic.xpm xnomail.xpm
xrn-compose.xpm xrn.goodnews.xpm xrn.nonews.xpm xrn.xpm xterm.xpm

Log Message:
CTWM is an extension to twm, that support multiple virtual screens,
and a lot of other goodies.

You can use and manage up to 32 virtual screens called workspaces.
You swap from one workspace to another by clicking on a button in an
optional panel of buttons (the workspace manager) or by invoking a function.

You can custom each workspace by choosing different colors, names
and pixmaps for the buttons and background root windows.

Main features are:
- Optional 3D window titles and border (ala Motif).
- Shaped, colored icons.
- Multiple icons for clients based on the icon name.
- Windows can belong to several workspaces.
- A map of your workspaces to move quickly windows between
  different workspaces.
- Animations: icons, root backgrounds and buttons can be animated.
- Pinnable and sticky menus.
- etc...

This commit follows the proposal on retiring twm in favour of something newer,
like ctwm. See http://web.zephyrite.net/NetBSD/wm/index.html.

ok mrg.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/ctwm/dist/CHANGES \
xsrc/external/mit/ctwm/dist/Imakefile \
xsrc/external/mit/ctwm/dist/Imakefile.local-template \
xsrc/external/mit/ctwm/dist/PROBLEMS xsrc/external/mit/ctwm/dist/README \
xsrc/external/mit/ctwm/dist/README.VMS \
xsrc/external/mit/ctwm/dist/README.gnome xsrc/external/mit/ctwm/dist/TODO \
xsrc/external/mit/ctwm/dist/TODO.gnome \
xsrc/external/mit/ctwm/dist/add_window.c \
xsrc/external/mit/ctwm/dist/add_window.h \
xsrc/external/mit/ctwm/dist/clicktofocus.c \
xsrc/external/mit/ctwm/dist/clicktofocus.h \
xsrc/external/mit/ctwm/dist/ctwm.axp_opt \
xsrc/external/mit/ctwm/dist/ctwm.c xsrc/external/mit/ctwm/dist/ctwm.com \
xsrc/external/mit/ctwm/dist/ctwm.h xsrc/external/mit/ctwm/dist/ctwm.man \
xsrc/external/mit/ctwm/dist/ctwm.spec \
xsrc/external/mit/ctwm/dist/ctwm.txt \
xsrc/external/mit/ctwm/dist/ctwm.vax_opt \
xsrc/external/mit/ctwm/dist/cursor.c xsrc/external/mit/ctwm/dist/cursor.h \
xsrc/external/mit/ctwm/dist/deftwmrc.c \
xsrc/external/mit/ctwm/dist/demolib.c \
xsrc/external/mit/ctwm/dist/descrip.local-template \
xsrc/external/mit/ctwm/dist/descrip.mms \
xsrc/external/mit/ctwm/dist/descrip.submms \
xsrc/external/mit/ctwm/dist/events.c xsrc/external/mit/ctwm/dist/events.h \

CVS commit: xsrc/external/mit/ctwm/dist

2015-09-03 Thread Youri Mouton
Module Name:xsrc
Committed By:   youri
Date:   Thu Sep  3 22:16:33 UTC 2015

Added Files:
xsrc/external/mit/ctwm/dist: CHANGES Imakefile Imakefile.local-template
PROBLEMS README README.VMS README.gnome TODO TODO.gnome
add_window.c add_window.h clicktofocus.c clicktofocus.h
ctwm.axp_opt ctwm.c ctwm.com ctwm.h ctwm.man ctwm.spec ctwm.txt
ctwm.vax_opt cursor.c cursor.h deftwmrc.c demolib.c
descrip.local-template descrip.mms descrip.submms events.c events.h
example.ctwmrc gc.c gc.h gendeftwmrc.com gnome.c gnome.h
gnomewindefs.h gram.c_VMS gram.h_VMS gram.tab.c gram.tab.h gram.y
gtw.c iconmgr.c iconmgr.h icons.c icons.h levitte.ctwmrc lex.c
lex.c_VMS lex.l libctwm.c link.com list.c list.h lnm.c lnm.h
make.com menus.c menus.h mk_tar.sh mwmhints.c mwmhints.h parse.c
parse.h peterc.ctwmrc resize.c resize.h screen.h session.c
session.h siconify.bm sound.c sound.doc sound.h system.ctwmrc
system.ctwmrc.gnome twm.h types.h util.c util.h version.c version.h
vms.txt vms2.txt vms_cmd_services.c vms_cmd_services.h vscreen.c
vscreen.h windowbox.c windowbox.h workmgr.c workmgr.h
xsrc/external/mit/ctwm/dist/xpm: 3D_Expand15.xpm 3D_Iconify15.xpm
3D_Lightning15.xpm 3D_Menu15.xpm 3D_Resize15.xpm 3D_Zoom15.xpm
3dcircle.xpm 3ddimple.xpm 3ddot.xpm 3dfeet.xpm 3dleopard.xpm
3dpie.xpm 3dpyramid.xpm 3dslant.xpm IslandD.xpm IslandW.xpm
LRom.xpm LRom1.xpm arthur.xpm audio_editor.xpm background1.xpm
background2.xpm background3.xpm background4.xpm background5.xpm
background6.xpm background7.xpm background8.xpm background9.xpm
ball1.xpm ball10.xpm ball11.xpm ball12.xpm ball2.xpm ball3.xpm
ball4.xpm ball5.xpm ball6.xpm ball7.xpm ball8.xpm ball9.xpm
cdrom1.xpm claude.xpm clipboard.xpm datebook.xpm emacs.xpm
ghostview.xpm hpterm.xpm mail0.xpm mail1.xpm nothing.xpm nt1.xpm
nt2.xpm pixmap.xpm postit.xpm skull.xpm spider.xpm supman1.xbm
supman2.xbm supman3.xbm supman4.xbm supman5.xbm supman6.xbm
supman7.xbm supman8.xbm supman9.xbm term.xpm unknown.xpm
unknown1.xpm unread.xpm welcome.xpm welcome.xwd xarchie.xpm
xcalc.xpm xcalc2.xpm xedit.xpm xftp.xpm xgopher.xpm xgrab.xpm
xhpcalc.xpm xirc.xpm xmail.xpm xman.xpm xmosaic.xpm xnomail.xpm
xrn-compose.xpm xrn.goodnews.xpm xrn.nonews.xpm xrn.xpm xterm.xpm

Log Message:
CTWM is an extension to twm, that support multiple virtual screens,
and a lot of other goodies.

You can use and manage up to 32 virtual screens called workspaces.
You swap from one workspace to another by clicking on a button in an
optional panel of buttons (the workspace manager) or by invoking a function.

You can custom each workspace by choosing different colors, names
and pixmaps for the buttons and background root windows.

Main features are:
- Optional 3D window titles and border (ala Motif).
- Shaped, colored icons.
- Multiple icons for clients based on the icon name.
- Windows can belong to several workspaces.
- A map of your workspaces to move quickly windows between
  different workspaces.
- Animations: icons, root backgrounds and buttons can be animated.
- Pinnable and sticky menus.
- etc...

This commit follows the proposal on retiring twm in favour of something newer,
like ctwm. See http://web.zephyrite.net/NetBSD/wm/index.html.

ok mrg.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 xsrc/external/mit/ctwm/dist/CHANGES \
xsrc/external/mit/ctwm/dist/Imakefile \
xsrc/external/mit/ctwm/dist/Imakefile.local-template \
xsrc/external/mit/ctwm/dist/PROBLEMS xsrc/external/mit/ctwm/dist/README \
xsrc/external/mit/ctwm/dist/README.VMS \
xsrc/external/mit/ctwm/dist/README.gnome xsrc/external/mit/ctwm/dist/TODO \
xsrc/external/mit/ctwm/dist/TODO.gnome \
xsrc/external/mit/ctwm/dist/add_window.c \
xsrc/external/mit/ctwm/dist/add_window.h \
xsrc/external/mit/ctwm/dist/clicktofocus.c \
xsrc/external/mit/ctwm/dist/clicktofocus.h \
xsrc/external/mit/ctwm/dist/ctwm.axp_opt \
xsrc/external/mit/ctwm/dist/ctwm.c xsrc/external/mit/ctwm/dist/ctwm.com \
xsrc/external/mit/ctwm/dist/ctwm.h xsrc/external/mit/ctwm/dist/ctwm.man \
xsrc/external/mit/ctwm/dist/ctwm.spec \
xsrc/external/mit/ctwm/dist/ctwm.txt \
xsrc/external/mit/ctwm/dist/ctwm.vax_opt \
xsrc/external/mit/ctwm/dist/cursor.c xsrc/external/mit/ctwm/dist/cursor.h \
xsrc/external/mit/ctwm/dist/deftwmrc.c \
xsrc/external/mit/ctwm/dist/demolib.c \
xsrc/external/mit/ctwm/dist/descrip.local-template \
xsrc/external/mit/ctwm/dist/descrip.mms \
xsrc/external/mit/ctwm/dist/descrip.submms \
xsrc/external/mit/ctwm/dist/events.c xsrc/external/mit/ctwm/dist/events.h \