Both fvwm(1) and twm(1) have a restart menu that contains other window
managers by default, which is useful if you want to switch around
without restarting X and/or custom window manager config.

cwm(1) only offers to restart into itself by deafult.
Add the other two we ship by default so users can round trip between
them.

Feedback? OK?

PS:  fwvm and twm menus more programs we don't ship, e.g. "wm2", and
  twm dies when failing to execute them (fvwm and cwm keeps running);
  do we want to keep those default-broken entries around?

Index: conf.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/conf.c,v
retrieving revision 1.255
diff -u -p -r1.255 conf.c
--- conf.c      26 Feb 2022 15:19:18 -0000      1.255
+++ conf.c      15 May 2023 06:11:01 -0000
@@ -307,6 +307,8 @@ conf_init(struct conf *c)
        conf_cmd_add(c, "lock", "xlock");
        conf_cmd_add(c, "term", "xterm");
        conf_wm_add(c, "cwm", "cwm");
+       conf_wm_add(c, "fvwm", "fvwm");
+       conf_wm_add(c, "twm", "twm");
 
        c->font = xstrdup("sans-serif:pixelsize=14:bold");
        c->wmname = xstrdup("CWM");

Reply via email to