Commit Graph
16 Commits
Author SHA1 Message Date
lotherk 2bc23143ef dtbar: add Ctrl+F2 menu focus command and keybinding (t0221) 2026-11-15 13:52:45 +00:00
lotherkandClaude Sonnet 5.5 bd570d49f7 sys.dtwmrc.tmsg de_DE, es_ES, fr_FR: the key lines were cut off by quoting (t0058)
Merged with the project's tool (programs/localized/util/merge, LC_ALL=C.UTF-8),
de_DE and es_ES lost F8-F11, Ctrl+Up and all lines after them because message 11
closed its quote after the F10 line; de_DE, es_ES and fr_FR lost every line
after the first f.exec "..." because the inner quotes were not escaped.  Both
fixed; all 11 locales now merge with rc=0 and no message, and the Keys sections
carry the same 56 MCDE key lines as C.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:57:39 +00:00
lotherkandClaude Sonnet 5.5 77609db238 MCDE shortcuts: Command+Tab is the program switcher in sys.dtwmrc too; the keytest presses plain keycodes and the table of 2026-11-15 (t0058)
4affe0dc00 changed the compiled-in key table (WmResource.c) but not the
sys.dtwmrc.tmsg files, so a session bound Cmd+Tab to f.next_key (window cycling)
and Shift+Cmd+Tab to f.prev_key.  Now f.mcde_app switcher / switcher-prev in all
three key messages of the 11 files.  SEEN (C locale, tools/mcde-keytest.sh, build/logs/mcde-keytest-2026-11-15c.log
exit=0): a box naming the program 'Dtterm' appears.

tools/mcde-keytest.sh: keys through tools/mcde-xkey.sh, a before/after screenshot
compare next to the window list, the terminal keys with a terminal focused.
docs/reference/shortcuts-test-2026-11-15.txt: key, expected, seen, verdict for the keys tried; Ctrl+F2 (the bar's menu
bar) is not bound anywhere.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:55:37 +00:00
lotherkandClaude Sonnet 5.5 029f3a5fd8 dtwm: the Command keys, Ctrl+Left/Right and the screenshot keys are in the key set a session loads; snap and full screen leave the front panel alone (t0058)
MEASURED 2026-11-15 on Xvfb with plain XTest keys: a session loads
Dtwm*keyBindings: DtKeyBindings, and that block of sys.dtwmrc had no Mod4 line;
the 25 Command/Ctrl+Left/Right/Eject/screenshot lines stood only in
DefaultKeyBindings (and in the Sun-keyboard variant), so XGrabKey of Mod4+h from
a second client succeeded (nothing grabbed) and the keys did nothing.  The 25
lines are copied into message 11 of all 11 sys.dtwmrc.tmsg.
SEEN after (C locale): Ctrl+Right goes to workspace Two; Command+Ctrl+Left makes
the focused File Manager the left half, Command+Ctrl+BackSpace gives it back,
Command+H minimizes it to an icon.  Not run: the other ten locales (only C is
built on this host); they got their own lines of DefaultKeyBindings, placed
after the F9-F11 lines of their message 11 like the lines that stand there.

With the front panel focused, Command+Ctrl+Left made it half the screen:
f.mcde_snap and f.mcde_fullscreen now ignore panel windows (seen: unchanged).

tools/mcde-xkey.sh presses keys by plain keycodes (XTest): xdotool 3.20160805
sends Alt_L first and the F-key with Alt held on this keymap, which made every
plain F-key binding look dead (the F9 of t0216).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:50:42 +00:00
lotherkandClaude Sonnet 5.5 dbe6350447 dtwm: F8 shows the workspaces as a grid of small screens with their windows; arrows, digit, Return or click switch (t0183, first part)
WmMcdeSpaces.c: an override-redirect window like the window overview, drawn
once on demand, nothing runs while it is closed.  Reached as f.mcde_app spaces
(a new function name is not bound by a key, as measured for the overview).
Seen on Xvfb: F8 opens it, Right + Return goes to Two, a click on Four goes
there, F8 twice closes, 1 goes back to One; docs/screenshots/leopard/Spaces-mcde.png.

The 'F9 does nothing' of t0058/t0216 was the test sender: xdotool 3.20160805
sends Alt_L before an F-key in this keymap, so the key arrives as Alt+F9.  With
plain XTest keycodes F8 reaches the root grab (ext/src/mcde/AGENTS.md).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:45:20 +00:00
lotherk 0b5023e05a MCDE dtwm: the window overview, F9/F10/F11 without a compositor (t0139)
New programs/dtwm/WmMcdeOverview.c: F9 (or Ctrl+Up) opens an
override-redirect window over the screen with a grid of tiles, one per
window, ordered by the windows' places; each tile keeps its window's aspect,
carries the frame's colour and the window's title (read from the XmString by
joining its text components -- XmStringGetLtoR with a tag of ours failed for
WM_NAME, measured).  Arrows, Tab and the pointer choose, Return or a click
raises and focuses that window and closes the view, Escape closes it.  No
live pictures, no dimming, no animation: drawn on Expose and when the choice
changes.

F10 (Ctrl+Down) keeps the focused program's windows (WM_CLASS); F11
iconifies every window of the workspace and the next F11 brings exactly those
back (the list is kept).

The keys route through f.mcde_app overview-all|overview-app|overview-desktop:
a new dtwm function name is not bound by a key (measured again with F9 and
f.mcde_overview, after f.mcde_switcher).  The five bindings are in the
built-in table (WmResource.c) and in every locale's sys.dtwmrc.tmsg -- fr_FR
had no "f.menu DtRootMenu" line, so its block got them after its last
binding (Alt<Key>F6 f.next_key transient) instead.  WmMain.c hands the
overview's events to McdeOverviewEvent before the rest of the dispatch.

Measured under Xvfb with xdotool (dtpad, dtsystemsettings, dtfile open):

  - F9: a 2x2 grid, three tiles with their titles ("System Settings",
    "File Manager - programs", "Text Editor - (UNTITLED)") --
    docs/screenshots/leopard/expose-mcde.png;
  - a click on the System Settings tile: the overview window is gone from
    the tree and _NET_ACTIVE_WINDOW changed from 0xe0002e (dtpad) to
    0x100002c (System Settings), which is first in the stacking order;
  - F10 with two dtpad windows and the others open: two tiles, both
    "Text Editor - (UNTITLED)";
  - F11: the three viewable windows are IsUnMapped; the second F11 makes
    exactly those three IsViewable again;
  - make programs/dtwm exit=0.

Open: the grid has no live window pictures (that needs a compositor) and no
dimmed desktop behind it -- the tiles are flat, as the design says.
2026-11-14 12:18:15 +00:00
lotherkandClaude Sonnet 5.5 455f5c2327 MCDE: build tools run on the build host; docs and appbuilder are options (cross build)
mkcatdefs/merge, dfiles/pmaker, the dthelp parsers' context/fclndir are
compiled with CC_FOR_BUILD; sym2num runs with KSH_FOR_BUILD; documentation
and dtappbuilder/ttsnoop (dtcodegen) are options the cross build turns off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:29:16 +00:00
lotherk c13e16700b MCDE dtsystemsettings: Desktop & Screen Saver, with Test and Random (t0110)
Desktop and Screen Saver are one pane with the two tabs of the reference;
-pane screensaver still opens the saver's page (PaneFind gives the old id to
the pane).  The saver page has the list in two groups ("Screen Savers" and
"Pictures"), a running preview, Options..., Test, the start time in the
reference's seven steps (3/5/15/30 minutes, 1 and 2 hours, Never), the
password box and the notes for the corners and the energy pane.

  * "Use random screen saver" selects StartDtscreenRandom, a new action
    (programs/types/dtscreen.dt.src: dtscreen -mode random) that dtscreen
    resolves into one of its modes each time it starts.
  * Test starts the chosen saver fullscreen in an override-redirect window
    and stops it after eight seconds -- dtscreen has no input loop, and a
    session's saver is stopped by dtsession's lock, which a settings program
    does not have.
  * Options... writes dtscreen.<mode>.batchcount and dtscreen.<mode>.delay
    into the server's resources (where dtscreen reads them, resource.c) and
    records them in ~/.dt/screensaver; the preview restarts with them.
  * The start-time scale writes dtsession's saver timeout, as before.

Pictures are listed but not offered: dtscreen's image mode has no picture
folder source of its own, so a folder entry would write a setting nobody
reads.  "Show with clock" and the hot corners wait for a clock mode in
dtscreen and for the Expose & Spaces pane; the energy warning waits for the
Energy Saver pane (there is no DPMS time to compare with yet).  Those three
are named in the pane itself.

tools/mcde-shot.sh: DTDATABASESEARCHPATH is comma-separated now -- that is
the separator DtEnvMap uses for it; with colons DtDb stays half-loaded and
actions are not found (the preview said "Action StartDtscreenSwarm was not
found"; with commas the savers run).  The data types come with it: a dtfile
window in the test home shows the PNG and text icons instead of "??" (the
t0194 symptom).  The script also exports DTSCREENSAVERLIST as dtsession does,
through a Session() function because the list has spaces.

Measured under Xvfb with xdotool:

  - the page shows the two groups, Swarm chosen and running in the preview
    (docs/screenshots/leopard/System-Preferences-Desktop-and-Screen-Saver-
    mcde.png);
  - Test covers the screen with the saver (...-Test-mcde.png) and the pane is
    back eight seconds later;
  - Random replaces the preview's process: "dtscreen -mode swarm" became
    "dtscreen -mode random" (pgrep), and dtscreen itself reports "random
    mode chose image" when run with -mode random;
  - Options... with the delay moved writes "dtscreen.swarm.batchcount: 100"
    and "dtscreen.swarm.delay: 530000" into RESOURCE_MANAGER and
    "mode=swarm" / "batchcount=100" / "delay=530" into ~/.dt/screensaver;
  - make check: test_panes PASS (new alias checks).
2026-11-14 10:49:54 +00:00
lotherkandClaude Sonnet 5.5 c01da186a7 MCDE: dtksh is out; dterror.ds is a Motif program; dtterm keeps starting the login shell
Konrad, 2026-11-14: "was soll dtksh ueberhaupt sein... einfach ne shell von
CDE? fuck it. schmeiss das komplett raus aus MCDE."  dtksh is CDE's ksh93
with Motif bindings for scripting dialogs; its bundled ksh93 (AT&T ast's
bin/package) compiles and RUNS test programs while it builds, which a cross
build for NetBSD on a Linux host cannot do -- the reason wm/mcde did not
build for days ("cc: not found", userland-2026-11-14g.log).

- programs/dtksh removed (1204 files); not in programs/Makefile.am,
  configure.ac, the recipe (REPLACE_INTERPRETER dtksh, KSH_CC), PLIST (bin,
  lib, man page, six catalogues), msg.C.am (dtksh.cat), AGENTS.md.
- What used dtksh:
  * dterror.src, dtfile_error.cpp, types/error.ds.src: an error dialog with a
    message.  New programs/dterror/dterror.c (about 70 lines of Motif), built
    as dterror.ds: dterror.ds MESSAGE [TITLE [OK-LABEL]], the convention of
    every caller (the data types, dtopen, dtfile ModAttr.c).  dtfile_error
    was only the 'test' entry of dtfile.config and ModAttr.c's fallback; the
    entry is gone and ModAttr.c calls dterror.ds.
  * dthelpgen.dtsh: the "building help" dialog helpgen.c forked; it runs
    silently now (childPid stays -1).
  * dtprintegrate/dtlp.src: the print dialog (1711 lines of dtksh); printing
    is to come back through CUPS (tasksd t0177, t0193).  dtlp's man page is
    out of the doc build and PLIST with it.
  * The data types DTKSH_SCRIPT (*.ds) and DTKSH_CONV (*.dtsh) in dt.dt.src:
    they would have classed dterror.ds as a script.
- dtterm needs no change: lib/DtTerm/TermPrim/TermPrimSubproc.c takes /usr/bin/zsh,
  then the shell of the passwd entry, then /bin/sh, and never started dtksh.
- ksh93 stays as the NetBSD binary for the scripts that say ksh (Xsession).

Measured: make mcde-linux exit=0 (build/logs/mcde-linux-nodtksh-2026-11-14.log),
autogen picked up programs/dterror; dterror.ds under Xvfb shows the error
icon, a two-line message and one button "Understood", and exits 0 on Return.

Not in this commit: the other agents' pending dtfile edits (Search.c,
Navigation.c) and the regenerated distinfo files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:12:55 +00:00
lotherkandClaude Sonnet 5.5 edb0e6949c MCDE: Mac OS X keyboard shortcuts through the desktop (Cmd+space dtlaunch, f.mcde_app, bar commands, dtterm/dtfile keys); fuse-afpfs-ng dropped from the build
The makronix set list is regenerated (46569 entries,
build/logs/x-userland-2026-11-13d.log); mcde-host exit=0
(build/logs/mcde-host-2026-11-13c.log).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 12:05:06 +00:00
lotherkandClaude Opus 5.5 f294b4f2ea mcde: translated key names stay in the menus, bindings stay English
What a user sees may be translated; configuration is English.  The labels
of the translated catalogs show their key names again (Strg+Einfg,
Umschalt+Einfg, ...); the bindings keep the English modifiers Xt reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:39:37 +00:00
lotherkandClaude Opus 5.5 f1b9f53690 mcde: the programs' menu shortcuts are Command shortcuts, key names English
The letter shortcuts of CDE's programs (dtpad, dtfile, dtmail, dtcm,
dticon, dtstyle, dtbuilder, the calendar, help) are Mod4 and read Cmd+X in
every language; Shift, Ctrl, Alt and Cmd are named in English everywhere.
The German, Danish and Spanish catalogs had translated the modifier in the
bindings themselves (Strg<Key>z), which Xt never understood.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:37:36 +00:00
lotherkandClaude Opus 5.5 15a0d09f45 mcde: the Command key -- the key left of the space bar, on every keyboard
dtkeys makes it Mod4 at login (a PC keyboard's left Alt and Windows keys
are exchanged, a Macintosh keyboard is so already; ~/.dt/keyboard chooses,
McdeSys tells a Macintosh keyboard).  Motif's text fields copy, cut, paste
and select all with Command+C/X/V/A; dtterm pastes, copies, opens and
closes tabs and switches them with Command; dtwm's switching, minimizing,
zones and full screen go by Command too.  Option is Alt, where Motif's
menu mnemonics stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:29:03 +00:00
lotherkandClaude Opus 5.5 16c09a7110 mcde: dtwm snaps windows to zones, has Full Screen, and rests while moving
A monitor below the bar is three columns by two rows; dragging a window to
an edge shows a zone (or a half), sliding along the edges joins zones, and
release takes it; dropped elsewhere it gets its size back.  f.mcde_snap and
f.mcde_fullscreen, the window menu's Full Screen and Alt+Ctrl keys in all
locales.  The move loop polled the pointer without end when the server was
not grabbed (177 CPU ticks in 3 s with a window held still), now it waits.
Focus follows the pointer without raising by default, as session
resources the Style Manager changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:15:59 +00:00
lotherkandClaude Opus 5.5 6d6f37c40c mcde: dtwm: Always on Top, for any number of windows
The window menu has "Always on Top" (f.mcde_above), a toggle with a
check mark, in sys.dtwmrc of every locale and in the built-in menu.  The
flag is per window and is also _NET_WM_STATE_ABOVE; every raise of another
window, a new window and a workspace switch raise the windows kept on top
again, lowest first.  Upstream's single topClient, raised again on every
VisibilityNotify, is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:53:15 +00:00
lotherkandClaude Opus 5.5 3b2a54c64b ext/src/mcde: import CDE 2.5.3 and pkgsrc wm/cde unchanged (the base of the MCDE fork)
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432.  Added with -f: CDE's .gitignore hides 612 files of
the archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:36:46 +00:00