10 Commits
Author SHA1 Message Date
lotherk 26c66b7444 dtwm: the program switcher stays while Command is held (t0115 follow-up)
Command+Tab raised and focused the next program at once, but the bar closed
by a five-second timer: holding Command longer made it vanish, and letting
Command go did not close it.  The bar now stays as long as Command is held:
dtwm grabs the keyboard while it is up (the Mod4 keycodes come from the
modifier map), KeyRelease of a Command key is looked at in WmMain before the
generic dispatch (McdeSwitcherEvent), and it hides and ungrabs at once.  A
long timer (60 s) only covers a grab that failed or a release that never
came; without the grab the old five-second flash stays.

Repeated Tab while held walks on, Shift+Command+Tab goes back; the chosen
program is raised and focused on every press (unchanged).  MCDE_SW_DEBUG=1
prints the grab and the key events.

Measured on an out-of-tree copy of the configured build (the tree's build
lock was held by another session's release/distfiles run): make dtwm linked
the changed sources, and under Xvfb :93 with two xterms
- keydown Super_L, Tab: the bar "MCDE Switcher" is IsViewable;
- after 7 s still held: IsViewable (the old code hid at 5 s);
- Tab again, keyup Super_L: IsUnMapped within 0.5 s, focus on the chosen
  xterm; the debug log shows the grab with keycodes 133 134 206 and the
  release of 133 closing it.

The official make mcde-linux and the install into /usr/mdt follow when the
build lock is free; the change touches only dtwm.  AGENTS.md describes the
behavior.
2026-11-16 18:57:06 +00:00
lotherk 7b68dabc08 MCDE desktop: the context menu of the empty desktop (t0283)
A right click on the background (not on an icon) opens the desktop's own
menu: New Folder (in ~/Desktop, numbered when it exists), Clean Up Icons
(the icons the person never dragged go back to the grid; a dragged one
keeps its place, moved=1 in ~/.dt/desktop.conf), Change Backdrop...
(dtsystemsettings -pane screensaver) and Show Desktop Icons ([x] in the
menu, show=0/1 in the file).  The menu is the same override-redirect
window the icon menu uses, with its own entry table.  Measured under
Xvfb: New Folder made ~/Desktop/New Folder and its icon appeared; a
dragged DATA stayed at 668,358 while the others returned to the grid;
Show Desktop Icons wrote show=0 and unmatched every icon, a restart with
show=0 shows no icons.  Screenshots: desktop-root-menu.png,
desktop-cleanup.png.
2026-11-16 08:48:33 +00:00
lotherk 0977cc954a MCDE: desktop icons for computer, disk mounts, media and network mounts
McdeSys: McdeSysMount and mcde_sys_mounts() -- /proc/mounts on Linux
(label from /dev/disk/by-label, removable from /sys/block), getmntinfo
on NetBSD; pseudo file systems are marked volume=0, network file systems
network=1; test_sysinfo checks that / is mounted once.

dtwm: WmMcdeDesktop.c is the 4Dwm-style desktop: one override-redirect
window per icon in the top right corner, filled from the top down, then
the next column left; XPM glyphs; labels cut with '...'; the computer
('/'), disk mounts, removable media (mounted or not), network mounts and
the person's files from ~/.dt/Desktop and ~/Desktop; right click menu
(Open, Open Home, Show on All/This Workspace, Unmount, Move to Trash);
drag and drop; every icon's place and workspace in ~/.dt/desktop.conf
(kept for good); not mounted media are mounted by the double click.
WmWrkspace.c calls McdeDesktopWorkspaceChanged() on a workspace change.

tools/mcde-shot.sh: MCDE_DESK_TEST_MOUNTS, MCDE_DESK_TEST_DISKS,
MCDE_DESK_TEST_DESKTOP and MCDE_SHOT_KEEP_HOME for the tests.
2026-11-15 22:22:20 +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 938253e9bd MCDE: drives on the desktop, the bar's user menu and search (t0126)
dtwm draws the volumes of the computer in a small window in the top right
corner under the bar (new programs/dtwm/WmMcdeDesktop.c): one tile for each
mounted volume from mcde_sys_disks -- the drive glyph, the volume's name on
a background field of its own (no shadow, no transparency), the chosen one
boxed.  A second click within 500 ms opens the volume in dtfile
(fork/execv, no shell).  The list is read when the window manager starts;
a volume plugged in later needs the mount events of t0080/t0083.
MCDE_DESK_DEBUG=1 prints what it found (tools/mcde-shot.sh passes it into
the session).

The bar's right end gained the reference's two parts: a person cascade with
the login name (the passwd entry first: a session started with an empty
environment has no USER -- measured, the menu said "user"), Accounts... and
Log Out...; and a magnifier cascade with "Launcher (Command+space)"
(dtlaunch -show) and the settings.  Both are cascades because the status
area is a homogeneous menu bar and refuses any other child (measured:
"Attempt to add wrong child type").

McdeSys's Linux disk backend now lists lvm and crypt volumes; the root of a
host with LVM was missing from every disk list before (measured: only
/boot and /boot/efi stood on the desktop, the root now appears as
"System").

Measured under Xvfb with xdotool:
  - the desktop shows efi, boot and System in the corner
    (docs/screenshots/leopard/Desktop-mcde.png);
  - a double click on System opens "File Manager - kitt:ROOT";
  - the person menu says "lotherk", with "Accounts..." and "Log Out...";
  - the magnifier opens its menu; "Launcher (Command+space)" starts dtlaunch
    (-show);
  - test_sysinfo lists the root volume; make lib/McdeSys, programs/dtwm,
    programs/dtbar exit=0.

Open (follow-ups): the front panel's running-program dots, the volume
hot-plug (t0083), and the desktop icons' text colour from the palette
(they use the session's background with black text today).
2026-11-14 13:39:17 +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
lotherk 276019ffff MCDE dtwm: Command+Tab shows the programs and switches to the next (t0115)
Command+Tab (and Shift+Command+Tab) now walks programs, not windows: the
window manager collects one entry per program (WM_CLASS, the same grouping
f.mcde_app uses) in the order of the stacking -- the focused program first,
so the first Tab is the program used before it -- and raises and focuses
the chosen program's top window.  While the switch lasts (5 s) the next Tab
walks on in the same list, as holding Command does in the reference.

A bar appears in the middle of the screen: an override-redirect window, the
palette's black, one name per program, the chosen one boxed, and it goes
away by itself (one timer, no animation, no transparency).  It is drawn
after the map: what is drawn before it is painted over by the background
(measured 2026-11-14).

The key goes through f.mcde_app switcher|switcher-prev: f.mcde_switcher is
registered and implements it, but a binding that names it is not taken --
neither Command+Tab nor Command+F9 did anything (measured), while
f.mcde_app on Command+H does.  Alt+Tab stays the window switch and
Command+` the program's next window.

Measured under Xvfb with xdotool: three programs, "n=3 sel=1
Dtsystemsettings" then a second Tab "sel=2 Dtfile" (the bar's selection
follows); Shift+Command+Tab goes back; the picture
(docs/screenshots/leopard/Command-Tab-mcde.png) shows four programs
(Dtpad, Dtsystemsettings chosen, Dtterm, Dtfile) over the file manager,
terminal and system settings.

Open: no icons (the program's icon file, not the window manager's), no Q,
H or Escape while the bar is up (they need the keyboard grab), and the bar
stays a few seconds instead of hiding on Command's release.
2026-11-14 08:14:52 +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 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