mcde/AGENTS.md: the file follows the code again

Seven paragraphs were out of date after this session's changes:

- System Settings is one window (1022x550, min equal to max, panes scroll in
  an XmScrolledWindow, the tab strip is one of many); a pane's picture must
  exist, three did not and one was used twice.
- The Dock has a pane again, and it works: ~/.dt/panel-apps, remove, add,
  _DtWmRestartNoConfirm.
- Startup Disk is not a pane any more; startupdisk.c is no longer built.
- dttoolbox's window title is "dttoolchest".
- dtkeys asks the machine (hw.model "Mac...") before usbdevs, because the
  internal keyboard may not be enumerated when the session starts.
- The panel defines its own arrow and keeps the busy cursor's handle (the
  black 16x16 square came from the frame's cursor).
- The desktop draws the Foundation icons at 64x64 by file system, shapes the
  icon window to picture and label, and maps/lowers it, so a raised window
  covers it.
- dtbar sets _MCDE_NO_FOCUS and dtwm skips such a client in its
  focus-follows-pointer path: the bar keeps the last program's menu.
This commit is contained in:
lotherk committed 2026-11-22 10:04:49 +01:00
1 parent cd58e70ef1
commit c54fcd647f
1 file changed
+49 -10
+49 -10
View File
@@ -62,7 +62,8 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
(measured 2026-11-16). dtlaunch (`dtlaunch.msg`, 3 messages) has no
libDtSvc to link, so it calls `catopen`/`catgets` itself and its
Makefile passes `CDE_INSTALLATION_TOP`. dttoolbox (`dttoolbox.msg`, 2
messages: the window title and the "no menu" label) does the same and
messages: the window title, which is "dttoolchest", and the "no menu"
label) does the same and
calls `setlocale` in main before its first message; the menu labels
themselves come from the person's chestrc, which is their file, not a
catalog. dtphoto (`dtphoto.msg`, 5 messages: the toolbox title, the two
@@ -232,7 +233,15 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
timer) and succeeds, but the following key did not arrive at the bar in the
measurement. A menu opens with the pointer only until a dtwm-side or
event-based path is found.
The front panel is not snapped or made full screen by keys.
The front panel is not snapped or made full screen by keys. The panel
defines the standard arrow on itself when it is mapped instead of inheriting
one from its frame (the frame's cursor was a black 16x16 square on the
MacBook, measured 2026-11-21), and the busy cursor's handle is kept: it used
to be created and thrown away, so BUSY_START defined cursor None.
The dock's kept programs (`~/.dt/panel-apps`) have a pane of their own,
System Settings > Dock: it lists them, removes one, adds one from a command
and restarts the window manager (`_DtWmRestartNoConfirm`) so the panel is
built again.
A double click on a window's title bar does `Dtwm*mcdeTitleBarDoubleClick`
(`none` by default, `minimize` or `maximize`); the Appearance pane writes
it and restarts dtwm (`_DtWmRestartNoConfirm`).
@@ -275,7 +284,11 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
(auto|pc|mac, dtkeys' Alt/Windows exchange) and the modifier functions
(`capslock: control` and its three neighbours); "dtkeys auto" applies both
with XChangeKeyboardMapping/XSetModifierMapping, at login
(Xsession.d/0072.dtkeys) and at once from the pane. The Shortcuts tab
(Xsession.d/0072.dtkeys) and at once from the pane. Whether the keyboard
is Apple's is asked of the machine first (`hw.model` starting with "Mac"),
then of usbdevs: at session start the internal keyboard may not be
enumerated yet, and a MacBook took the PC branch and exchanged Alt and
Command (`_MCDE_KEYS` said "pc", measured 2026-11-21). The Shortcuts tab
keeps `~/.dt/shortcuts` (`Name=key`); the launcher's key is live there:
`Dtlaunch*hotkey`, and `dtlaunch -quit` asks the running launcher to let go
of it, so the next one takes the new key. The other rows are a record --
@@ -302,6 +315,14 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
`~/.dt/screensaver`. The start time has the reference's seven steps
(3/5/15/30/60/120 minutes, never) and goes to dtsession as the saver
timeout.
- **System Settings is one window**: 1022x550, minimum equal to maximum, and
every pane lives in it -- a pane taller than the window scrolls (the pages
sit in an `XmScrolledWindow` with `XmAUTOMATIC`) instead of growing the
window (Konrad, 2026-11-21). The tab strip is one of many
(`XmNradioBehavior`, `XmNradioAlwaysOne`), so a visited tab does not stay
pressed. A pane's picture must exist in `appconfig/icons/C`; three did not
(CDs & DVDs, Energy Saver, Dock) and one was used twice (Startup and
Accounts).
- **The "already exists" question** (dtfile/OverWrite.c,
create_replace_rename_dialog): one sentence ("An item named ... already
exists in this location. Do you want to replace it with the one you are
@@ -461,12 +482,11 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
sentence and the keep sliders with the free-space limit. Without a
configured disk the lines say so ("no disk is set up") -- measured on the
build host, where backup is root work.
- **Startup Disk**: `dtsystemsettings/startupdisk.c` -- the volumes from
mcde_sys_disks, the one the system started from marked with * (the device
of / from mcde_sys_info), its type, size and mount point, and
"Restart..." (the bar's power dialog, so it asks). Choosing another
startup volume writes the boot loader's configuration (grub on Linux,
boot.cfg on NetBSD) and needs root -- the follow-up; the pane says so.
- **Startup Disk**: not a pane any more (Konrad, 2026-11-21). The volumes
from mcde_sys_disks, the one the system started from and its device are in
System Information; `dtsystemsettings/startupdisk.c` is no longer built.
Writing another startup volume's boot loader configuration (grub on Linux,
boot.cfg on NetBSD) was its follow-up and stays one.
- **System Information**: `dtsystemsettings/sysinfo.c` -- the sections
Hardware, Network and Software in a list on the left, the values on the
right from McdeSys (`mcde_sys_info`: model, processor, memory, startup
@@ -516,7 +536,17 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
- **The desktop**: `WmMcdeDesktop.c` draws the icons of the desktop in the
style of IRIX 4Dwm (4DWm app-defaults: iconDecoration "label image",
iconClick false, iconPlacementMargin 10), in the top right corner and
filled from the top down, then the next column to the left. The order is
filled from the top down, then the next column to the left. The pictures
are the Foundation icons at **64x64** (`programs/icons/Irix*.m.pm`,
rastered by `tools/fti2xpm.py` from the .fti sources; the size is its third
argument), and a medium picks its own by file system: cd9660 the CD, udf
the DVD, msdos the diskette, tar/dump the tape, anything else the disk.
A window's label is drawn on the backdrop with a shadow, not into a tile:
the icon window is shaped (`XShapeCombineMask`) to the picture and the
text. The icons are **mapped and lowered** -- an override-redirect window
is not restacked by the window manager, so `XMapRaised` used to put them
above every client; now a raised window, a full screen one included,
covers them, as 4Dwm's desktop does. The order is
the computer itself ("/", the only system volume that is shown), the disk
mounts, the removable media (a stick, a CD or a DVD -- also when it is not
mounted), the network mounts (NFS, SMB, AFP, sshfs) and the person's files
@@ -546,6 +576,15 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
NetBSD) names every mount and marks the network file systems; the desktop
takes the local volumes from `mcde_sys_disks` (labels) and the network
ones from there.
- **The bar is no focus target** (`_MCDE_NO_FOCUS`): moving the pointer from
a program to the bar used to take the keyboard away from that program --
dtbar set the input focus to PointerRoot on EnterNotify and dtwm cleared the
active client -- so the bar showed the M menu and a click could not act on
the program (t0255, t0257). dtbar sets `_MCDE_NO_FOCUS` on its window and
leaves the focus alone; dtwm's focus-follows-pointer path skips such a
client, so the program keeps the keyboard, its menu stays in the bar, and
an item acts on the client the menu came from (the ClientMessage goes to
that window, not to whoever has the X focus).
- **The bar's right end**: a person cascade (`McdeUser`) whose first line is
the login name from the passwd entry -- a session started with an empty
environment has no USER (measured: the menu said "user") -- then Accounts