Moving the pointer from a program to the bar took 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 instead of the
program's and a click could not act on it (t0255/t0257).
Now dtbar marks its window _MCDE_NO_FOCUS and leaves the focus alone, and
dtwm's focus-follows-pointer path (HandleWsFocusIn) skips a client that
carries the property: the last program stays focused while the pointer crosses
the bar, the bar keeps showing its menu, and an item acts on the client the
menu came from (ItemActivated sends the ClientMessage to that window, not to
whoever has the X focus).
Measured: make -C programs/dtwm rc=0 and make -C programs/dtbar rc=0, 0
errors each.
With focus-follows-pointer (sys.resources: Dtwm*keyboardFocusPolicy: pointer)
a move from a terminal straight onto a desktop icon or onto dtbar kept the
terminal as the keyboard focus: the icon windows did not select EnterNotify,
and McdeDesktopEvent returns True for every event of an icon, so the
workspace's root/backdrop enter path (HandleWsEnterNotify -> Do_Focus_Key
(NULL)) never ran. The bar is a window of its own and dtwm does not focus
it, so hovering it changed nothing either.
- WmMcdeDesktop.c: the icon windows select EnterWindowMask, and their
EnterNotify calls Do_Focus_Key(NULL, time, ALWAYS_SET_FOCUS) -- the focus
goes to the pointer root and dtwm clears the active client.
- dtbar.c: the shell already had EnterWindowMask for the menu refresh; on a
normal enter it now sets the input focus to PointerRoot unless the root or
the bar already has it. A menu's grab (NotifyGrab) is left alone, so
keyboard menu handling is untouched.
Measured under Xvfb :89 (1024x768, pointer policy, Toronto backdrop, dtbar,
two xterms at +56+126 and +406+326):
- before: xterm A -> bar kept xterm A; xterm B -> Computer icon kept xterm B.
- after: A -> icon focus 1 (PointerRoot), B -> icon 1, A -> bar 1,
B -> backdrop 1; hovering A or B again focuses that xterm; the front panel
still takes the focus itself, and the client loses it (unchanged).
make mcde-linux MCDE_DIRS="install programs/dtwm programs/dtbar" exit=0;
"check programs/dtbar" 1 PASS, 0 FAIL; MCDE_DIRS=plist
"mcde-plist-check: ok".
AGENTS.md: the window/focus paragraph says what an icon or the bar now does.
The M menu's labels come from dtbar's catalog now, the CDE way: the English
source programs/dtbar/dtbar.msg, the German copy in
programs/localized/de_DE.UTF-8/msg/dtbar.msg, both built by
programs/localized/*/msg with gencat (dtbar.cat added to msg.C.am) and
installed under lib/nls/msg/<locale>/. catopen("dtbar", NL_CAT_LOCALE) --
the name without .cat, because NLSPATH appends %N.cat (CDE's
NLS_PATH_STRING); dtbar sets NLSPATH itself when the session has none.
Strings: About This Computer, Software Update..., Makronix Software...,
System Settings..., Favourites, Recent Items, Force Quit..., Front Panel,
Sleep, Restart..., Shut Down..., Lock Screen (set 1, messages 1-12).
Measured on Xvfb with ttsession + dtwm + dtbar, a fresh HOME, the M menu
opened with a click:
- LANG=de_DE.UTF-8 (locale generated with localedef into /tmp, LOCPATH):
"Über diesen Computer", "Software-Aktualisierung...",
"Systemeinstellungen...", "Favoriten", "Zuletzt verwendet", "Frontplatte",
"Ruhezustand", "Neustart...", "Ausschalten...", "Bildschirm sperren"
(screenshot /tmp/opencode/catalog-de.png);
- LANG=C: the English labels (/tmp/opencode/catalog-c.png), so the C
catalog and the fallback work.
A direct check with catopen/catgets in C returns the same two strings.
make mcde-linux MCDE_DIRS="install programs/dtbar" and
"... programs/localized/C/msg" exit=0; MCDE_DIRS=plist:
"3410 installed names under dt/, 8599 in the PLISTs", ok.
The tmsg line alone does not reach a default install: dtwm reads its keys
from ${CDE_CONFIGURATION_TOP}/config/%L/sys.dtwmrc, and only the
installation copy under ${CDE_INSTALLATION_TOP} exists there, so a default
session runs on WmResource.c's builtinKeyBindings. Ctrl+F2 is in that set
now (as Cmd+Tab, Cmd+H, Ctrl+Left/Right and the screenshots already are).
dtbar's Command("menu") puts the X input focus on the bar's shell and the
Motif focus on the M cascade (the first one), instead of XmTRAVERSE_HOME on
the bar, which left the traversal nowhere.
Measured on Xvfb with ttsession, dtwm, dtbar and dtterm, a fresh HOME:
xdotool getwindowfocus before Ctrl+F2 -> 0xe00037, the Terminal window
(547x361 at 23,45); after -> 0xc0003d, 1280x22 at 0,0, the bar's shell
(xwininfo). tools/mcde-keytest.sh ctrl+F2: "screen changed". Down and
Return still post no menu: the bar also carries the client's exported menu
bar, and Motif does not traverse into it from outside -- recorded in
AGENTS.md as an open point, the pointer opens the M menu (screenshot).
make mcde-linux MCDE_DIRS="install programs/dtbar programs/dtwm" exit=0.
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).
LICENSE at the root; the 103 files new in ext/src/mcde (none was in the CDE
import) carry the CNCL line instead of the LGPL notice.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The area is programs/dtsystemsettings/sound.c now (as MCDE-PROGRAMS.md
planned), with the reference's tabs:
* Sound Effects: "Choose an alert sound" and the events of the session's
theme in a list (Launch, Start, End, Error, Warning, Beep, ...); a click
sends the event through mcdesoundd (McdeSoundEvent). The theme is an
option menu of the directories next to the current one (it replaces the
row of buttons).
* Output: the volume of the default output and Mute
(mcde_sys_volume_get/_set/_mute), and "Show the volume in the bar": it
writes ~/.dt/bar (showvolume=), which dtbar reads at start -- with 0 the
speaker is not managed (the status area is one icon narrower).
* Input: a note, because McdeSys has no capture API (no level meter, no
input volume); that belongs to the same addition as a sound-device list.
Measured under Xvfb with xdotool:
- the three tabs (docs/screenshots/leopard/System-Preferences-Sound-mcde
.png, ...-Sound-Output-mcde.png, ...-Sound-Input-mcde.png); Output shows
the volume read from the server (100) and the two switches;
- unchecking "Show the volume in the bar" writes "showvolume=0" into
~/.dt/bar (cat); dtbar started with that file shows no speaker in the
status area, with "showvolume=1" it does;
- a click on an event reaches mcdesoundd: its log names the theme and the
file ("Error -> .../Camouflage/error.wav"); PulseAudio is not there in
the Xvfb session ("Connection refused"), the daemon's own player is the
fallback.
Not measurable here: hearing a sound (no audio device in the session), and
choosing an output device (McdeSys has no device list; two Pulse sinks are
not there). A separate alert volume and the input level wait for that API.
The bar has a monitor icon next to the network one. Its menu is the
reference's: "Detect Displays", then how many displays RandR reports, each
monitor with its size ("screen: 1024x768", primary marked), the modes of the
first monitor ("* 1024 x 768, 0 Hz" -- the current one marked), and
"Displays Preferences..." which opens System Settings > Displays.
Choosing a mode applies it (McdeDispApply, the same library the pane uses)
and asks "Keep these display settings? Without an answer they go back in 15
seconds" with Keep and Revert; the timer puts the old set back. "Detect
Displays" reads RandR again and runs dtsystemsettings -apply-displays, as
Xsession.d/0071.displays does at login. The menu reads the displays when it
opens only -- no timer, no polling.
The icon is new: programs/icons/DtScrn.t.pm (a 16x16 monitor), in the icon
list of its Makefile.
Measured under Xvfb with xdotool:
- the menu opens with "Detect Displays", "1 display", "screen: 1024x768",
"* 1024 x 768, 0 Hz" and "Displays Preferences..." (docs/screenshots/
leopard/Menu-Bar-Displays-mcde.png);
- Displays Preferences... starts dtsystemsettings and the Displays pane
appears (1024 x 768, the monitor "screen", rotation Normal);
- choosing the mode opens the question, and 17 seconds later the dialog is
gone and the displays were put back (xwininfo: no "Display Settings"
window; the mode is the one before).
The mode switch cannot be measured on a second mode here: the Xvfb screen
has one mode and refuses new ones (xrandr --newmode/--addmode: "cannot find
mode", maximum 1024x768), and changing the developer's real display is a
hazard (AGENTS.md). So the path ran with the current mode; the apply, the
question and the revert are what was exercised.
Open: "show displays in the bar" as a switch in the Displays pane, and
rebuilding the menu on RRScreenChangeNotify instead of at open (the menu
reads no timer, but a monitor plugged in shows on the next open).
The pane is the reference's form now: Appearance (a menu of the palettes with
the chosen palette's eight colours as a strip under it, then "In use:"),
Highlight Color (the eight colours of the active palette, written as
*highlightColor and *selectColor for programs started later), the scroll
bars, the number of recent items, font smoothing -- and the fonts, which
lose their own pane (the "fonts" id still opens Appearance, the entry is
gone from the overview).
What the pane writes is what the session reads:
*<screen>*ColorPalette, *highlightColor, *selectColor _DtAddToResource
Dtwm*mcdeTitleBarDoubleClick: none|minimize then dtwm restarts
~/.dt/recent.conf: applications=N, documents=N, servers=N
~/.config/fontconfig/conf.d/60-mcde-antialias.conf antialias=false
dtwm gained the title-bar double click: a new resource (WmResNames.h,
WmGlobal.h, WmResource.c, default "none") and, in CheckButtonPressBuiltin
(WmCEvent.c), the double-click branch on the title -- F_Minimize or
F_Maximize instead of the move. dtbar's Recent Items and Connect to
Server's history now read their counts from ~/.dt/recent.conf
(ItemsPush/FillRecent, ReadLines/RecentAdd).
Two things the task itself said to drop are dropped, with the reason in the
pane: Motif has no separate arrow buttons at both ends of a scroll bar and no
smooth scrolling (an animation), and a click in a Motif scroll bar pages
while the middle button jumps to the place.
Font smoothing is a fontconfig rule, not *Xft.antialias: measured here, Xft
ignores that X resource (205 grey levels with and without it), while a
<match target="font"> antialias=false rule gives 2. The rule reaches GTK and
Qt as well (one look).
Measured under Xvfb with xdotool:
- "Off" + Apply -> the file is written and an Xft render test in the same
session drops from 205 distinct grey levels to 2; with the size limit 20
the same test (size 12) gives 2, with 4 it gives 205 -- the rule holds
only up to the size.
- the title-bar box + Apply writes Dtwm*mcdeTitleBarDoubleClick: minimize,
dtwm restarts, and a double click on dtpad's title bar leaves its window
"Map State: IsUnMapped" (IsViewable before).
- a palette choice writes *0*ColorPalette: Camouflage.dp (and dtthemesync's
colours), the strip and the Highlight menu follow it.
- Documents=5 with eight entries in ~/.dt/recent shows five in the bar's
Recent Items; Servers=0 leaves the Connect to Server field at "sftp://",
Servers=10 prefills the stored address.
Pictures: docs/screenshots/leopard/System-Preferences-Appearance-mcde.png
(the four groups) and ...-Appearance-fonts-mcde.png (scrolled to the fonts).
make check: test_panes PASS.
Open: a highlight colour reaches programs started later, not the running
ones; "Applications" has no recent list to feed; the dtwm value takes effect
when the window manager restarts (the Apply button does it); the antialias
rule is read at program start; and the fonts list is six rows inside the
scrolled pane.
The pane is the reference's window now: the big clock, the date and the
zone, then Date & Time | Time Zone | Clock.
Date & Time: "Set date & time automatically:" with the server
(pool.ntp.org by default) and "Apply Time Service"; a month calendar with
the weekday row and < > for the months (the chosen day pressed), a time
field with "Now", an analog clock drawn on Expose and once a minute, and
"Set Date and Time". Both root actions run in the su(1) terminal the
program already uses: dtsystemsettings -set-time EPOCH and -set-ntp on|off
SERVER. Below: "To set date and time formats, use Language & Region." and
a button that opens that pane.
Clock: the bar's clock -- shown or not, 24-hour, seconds, weekday, date --
written to ~/.dt/clock ("show=", "format="), which dtbar reads at its next
minute (measured: format=%H:%M leaves "07:49" in the bar).
McdeSys has the system side: mcde_sys_ntp_get/set (NetBSD: ntpd=YES in
rc.conf, the pool line of ntp.conf, /etc/rc.d/ntpd start/stop; Linux:
timedatectl set-ntp and timesyncd.conf) and mcde_sys_time_set
(settimeofday(2), root).
Measured under Xvfb: the three tabs render
(docs/screenshots/leopard/System-Preferences-Date-and-Time-mcde.png,
...-Time-Zone-mcde.png, ...-Clock-mcde.png); the Clock tab writes
"show=1" and "format=%a %e %b %H:%M" to ~/.dt/clock, and dtbar with that
file shows the chosen format.
Not run: the root paths (this session has no root, and setting the
development host's clock or switching its NTP on is a hazard). The tests
the task asks for -- ntpd=YES in /etc/rc.conf, ntpd running, date(1)
changed -- belong in the test VM; the commands they use are the two above.
The bar now starts with the program: a cascade named after the client's
class (WM_CLASS, else its title) and, the same way for every program, its
menu -- "About <Name>", "Preferences..." (Cmd+,), "Hide <Name>" (Cmd+H),
"Hide Others" (Option+Cmd+H), "Show All", "Quit <Name>" (Cmd+Q). The
program's own menu bar follows, as before.
The entries reach the program through the protocol the bar already has:
About, Preferences and Quit look for the entry in _MCDE_MENU (About in Help,
Options/Preferences/Properties in File, Exit/Quit/Close) and send the bar's
_MCDE_MENU_ACTIVATE for it; a program without such an entry gets a small
dialog (About) or WM_DELETE_WINDOW on its window (Quit). Hide and Hide
Others send WM_CHANGE_STATE with IconicState to the root (ICCCM), for the
program's windows or for every other program's.
Measured under Xvfb with xdotool: the menu of dtfile
(docs/screenshots/leopard/finder-menu-mcde.png: About Dtfile, Preferences...
Cmd+,, Hide Dtfile Cmd+H, Hide Others Option+Cmd+H, Show All, Quit Dtfile
Cmd+Q) and the same menu for dtpad with its own name; "Hide Dtfile" leaves
the window as dtwm's icon at the top left (the bar keeps its menus).
Open: the name is not bold -- CDE's app-defaults define no rendition tag and
no bold font list is chosen here; "Show All" is insensitive because dtwm
ignores WM_CHANGE_STATE NormalState (measured) and restores only from its
icon; the reference's "Services" has no MCDE mechanism and is left out.
The dialog is the reference's: the sentence at the top, one entry per
program, the hint "You can open this window by pressing
Command+Option+Escape." at the bottom left, and the button at the right --
"Force Quit", or "Relaunch" when the chosen program is the file manager.
A question comes first: "Do you want to force <program> to quit? You will
lose any unsaved changes."
A program is its class (WM_CLASS), so its windows are one entry (dtfile
showed up three times before). Whether it answers is the process from
_NET_WM_PID: a stopped (SIGSTOP, a debugger) or zombie process says
"(not responding)". That test is new in McdeSys --
mcde_sys_process_stopped(), /proc/PID/stat on Linux and KERN_PROC2/p_stat
on NetBSD -- because a program never reads /proc itself
(ext/src/mcde/AGENTS.md, "the operating system is behind one layer"). The
pid is looked for three levels down from the root's children: dtpad's main
shell carries the class but not the pid, the file manager's main window
carries both (measured 2026-11-14), so the class grouping takes the pid from
whichever window of the program has one.
Ending a program: XKillClient closes its connection (it ends however it
hangs), then a local pid gets SIGTERM and, three seconds later, SIGKILL --
a stopped process cannot see the closed connection, so the signal is what
ends it. The file manager is started again a second later.
Measured under Xvfb with xdotool (dtbar + dtfile, dtfile SIGSTOPped):
"Dtfile (not responding)" in the list, the button says "Relaunch"
(docs/screenshots/leopard/force-quit-mcde.png); Return opens the question,
Return again confirms; the old process (pid 3692926) is gone after six
seconds and a new dtfile runs (pid 3696883).
Open: the list cannot show the program's icon or colour it red -- XmList
takes strings (the reference has icons and red "not responding"); the
dialog is placed by dtwm at the corner, the picture moves it aside with
xdotool.
Software Update... starts dtsystemsettings with -pane update (spawned
directly, no shell and no foreign text); measured under Xvfb: the Software
Update pane opens (Running/Available/New packages/Source, Check Now).
Force Quit names the program of the focused window, as the reference does
("Force Quit Dtfile"): _NET_ACTIVE_WINDOW, then the keyboard focus, then the
program whose menus the bar carries -- the first two are not set in an Xvfb
session without a window manager's active-window property, the third is
(dtbar's client window, WM_CLASS). The item carries Cmd+Option+Esc as its
accelerator text, Log Out carries Shift+Cmd+Q.
New in the menu: "Makronix Software..." (insensitive until the package
catalogue, t0056) and "Front Panel" with Show or Hide (Cmd+Option+D,
dtaction f.toggle_frontpanel, bound in dtwm's WmResParse.c:604 and
WmResource.c:527) and Settings... (insensitive until the bar's pane, t0112).
tools/mcde-shot.sh gained MCDE_SHOT_EXTRA: a program of the session started
beside the main one, so that a picture can show dtbar with dtfile.
Evidence: docs/screenshots/leopard/apple-menu-mcde.png (M menu open, Force
Quit Dtfile); the update pane opened from the menu (/tmp/opencode/mmenu-
update2.png in this session, same commands); dtbar's menu list shows every
entry with its state. Not exercised: Log Out, Lock Screen and the power
items (they end the session; the AGENTS list them as hazards), and the
front panel itself is not part of the Xvfb session, so the toggle's effect
was not photographed -- the action and its binding are named above.
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>
Konrad, 2026-11-13: "panel fehlt, top leiste is lila", the network settings
"zu rudimentaer, keine ip config, kein dns", the global menu only while a
program that has one is in front.
The bar (and the launcher, the drop-down terminal, the login items) came
from Xsession.d, before dtsession had loaded the session's resources and
the colour server: dtbar took *background from ~/.Xdefaults (#6e1e7d, the
user's base16 theme; dtbar PID 1270788 started before dtsession 1270795).
Restarting dtbar in the running session gave the palette's colours. Now
dtsession runs sys.sessionetc -- the first of CDE_CONFIGURATION_TOP/config
and CDE_INSTALLATION_TOP/config, as sys.session is found -- before the
user's sessionetc (SmRestore.c, StartEtc); it sources config/sessionetc.d,
where 0080.dtlaunch, 0085.dtdropdown, 0090.dtbar and 0095.loginitems moved.
The bar takes colour set 5, the programs' background, not set 6 of a menu
bar (Dtbar*secondaryColorSetId: 5; measured #c6b2a8 with Default.dp).
dtwm publishes the focused client as _NET_ACTIVE_WINDOW (EWMH, WmEwmh.c
SetNetActiveWindow from SetKeyboardFocus and where the focus is dropped);
dtbar shows a program's menus only while the active window is the menus'
owner, a dialog of it (WM_TRANSIENT_FOR) or a window of the same program
(WM_CLIENT_LEADER). Measured on Xvfb with dtwm, dtbar, dtpad and xterm,
clicking: dtpad -> its menus, xterm -> M only, dtpad -> its menus again.
Network (dtsystemsettings/network.c, docs/reference/netconfig.txt): Show:
Network Status (a light and a sentence per card, Configure...) or one card
with the tabs TCP/IP (Using DHCP, with manual address, Manually, Off;
address, mask, router, DHCP client ID, Renew DHCP Lease; IPv6), DNS
(servers, search domains, what resolv.conf has now), Wi-Fi and Ethernet;
the lock and Apply Now as Accounts. McdeSys mcde_sys_net_config,
_configure, _renew (replacing mcde_sys_net_dhcp, which was declared and
implemented nowhere): NetBSD one block per interface in dhcpcd.conf, as
ifconfig.if(5) recommends, sysinst's static address in ifconfig.IF read and
moved there, applied with dhcpcd -n IF (cross-compiled with the tree's
x86_64--netbsd-gcc, not run); Linux the NetworkManager profile (nmcli).
mcde_sys_interfaces took the last IPv4 address (the secondary one), now the
first. Measured on this host, read only: the pane shows the three cards,
172.20.10.2/28 by DHCP, router 172.20.10.1, DNS 1.1.1.1, MAC, MTU 1500;
test_sysinfo (new checks: settings read, 300.1.2.3 refused) exit 0.
Nothing was applied on the development host.
From the review of 2026-11-12's commits: libDtTerm links libMcdeSound
(977a7347c made the bell call McdeSoundEvent; dtcodegen did not link); the
PLIST lacked dtphoto, dtpaint, dttoolbox, mcdesoundd, libMcdeSound, their
data and the sound themes (51 entries, from the installed tree); mcdesoundd
was started by nothing (sessionetc.d/0075.mcdesoundd) and took the
selection from a running server; dttoolbox kept only the first line of the
Selected menu and rebuilt it every 500 ms, and NewMenu returned an
uninitialised pointer past 64 menus.
Built and installed with make mcde-host MCDE_DIRS=install, exit 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
McdeSys gets mcde_sys_battery: all batteries as one, charging, mains,
minutes left. NetBSD reads the envsys(4) dictionary of /dev/sysmon as
envstat(8) does (acpibat "present", "charge", "charging", "discharge
rate"; acpiacad "connected"), Linux /sys/class/power_supply (energy_* or
charge_*, status, Mains/USB online). The sources are in
docs/reference/battery.txt.
dtbar shows a fourth icon, only when there is a battery: full, half, low
(red), charging; its menu says the charge, the power source and the time
left. The status bar is 30 pixels an icon.
Measured: on the Linux host test_sysinfo says "battery 76% ac", as
/sys/class/power_supply/BAT0/capacity and AC/online do; the menu on Xvfb
(build/mcde-shots/battery-menu.png) says "Battery: 76 %", "Power Source:
Power Adapter". The NetBSD backend compiles and runs in the build VM,
which has no battery (envstat: no drivers registered): only the
no-battery case is measured there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MakronixDtlogo.t.pm: the M with its star, drawn by hand -- the 240-pixel logo
scaled to 16 was a dark square. dtbar gives it when the button is made (so
Motif sizes it) and keeps the letter M where the icon is missing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Four bands of icons -- Personal, Hardware, Internet & Network, System --
from panes.c (plain C, PASS test_panes); a click opens the pane in the
window, Show All goes back, -pane ID opens one directly. Own panes through
McdeSys: Sound (volume, mute), Network (the cards, addresses, SSID),
Bluetooth (state, on/off), Date & Time (a running clock, the zone), About
(everything mcde_sys_info knows). Appearance, Desktop, Fonts, Language,
Screen Saver, Keyboard, Mouse, Startup open dtstyle, Printers dtprintinfo,
until they are drawn here; Accounts and Software Update are greyed. dtbar's
System Settings... and the Sound/Bluetooth/Network Settings... items open
it. New icons: a 48-pixel Makronix logo, 32-pixel network and Bluetooth.
Seen on Xvfb with dtwm and dtbar, sound against a private PulseAudio.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- menuscale.c gives XmScale Motif's XmQTmenuSavvy trait (XmeTraitSet, as
Label.c does for its classes): a menu takes the volume slider without
"wrong child type". Dragged against a private PulseAudio (null sink):
40 % -> 100 %, two wheel steps -> 90 %.
- The icons are CDE icon files (icons/Mcde*.t.pm, appconfig/icons/C, in the
PLIST), loaded with XmGetPixmap; the status menu bar has a fixed width (the
form had squeezed the buttons to 10 pixels).
- McdeSys sets SIGCHLD to the default while it waits for a tool: dtbar
ignored SIGCHLD, waitpid gave no status and every query failed (volume -1).
dtbar starts programs with a double fork instead.
- Menu entries left-aligned; Mute shows its box when off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
status.c: three menus with 16x16 XPM icons left of the clock, through
McdeSys (volume via pactl/mixer, Bluetooth, interfaces); the wheel over the
speaker turns the volume. Shown on Xvfb with dtbar alone (speaker, Bluetooth,
network, clock). Open: with dtwm running the icons do not show
(build/mcde-shots/wcmp.png); the volume scale in a pulldown draws Motif's
'wrong child type' warning (RowColumn.c checks the XmQTmenuSavvy trait) --
next step a scale subclass with that trait; the network icon shows wired
while the host is on Wi-Fi.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The M menu has About This Computer (logo, system and version, processor,
memory, startup disk, More Info with machine, kernel, host name, disk space
and the desktop's version, all from mcde_sys_info), Software Update (greyed
until the update exists), System Settings, Favourites (~/.dt/favourites, with
Edit Favourites...) and Recent Items (~/.dt/recent, written when an item is
opened, with Clear Menu) -- items.c with its test (PASS test_items) --, Force
Quit (the programs with a window, XKillClient), Sleep, Restart..., Shut
Down... (McdeSys, the last two ask first), Lock Screen and Log Out <name>.
The bar's dialogs are centred on the screen (Motif centred them on the bar).
Tested on Xvfb: About, a favourite started and listed under Recent Items,
Force Quit ended dtcalc, the Shut Down question shows (not confirmed: on the
development host it could shut the computer down).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dtterm does not call DtInitialize: it starts the program side itself
(_DtMcdeGlobalMenuInitialize, declared in Mcde/GlobalMenu.h when Xt is in).
McdeGlobalMenu.c keeps all menu bars (dtterm has one per tab), hides any the
program manages while the bar runs (Xt change hook) and exports the first
that lives. dtterm's menus follow the tab with the focus
(_DtTermViewMenuSetCurrent, setContext split into contextFor), since from the
bar they are not posted from the tab. dtbar defers a new menu text while one
of its menus is open (the open menu was pulled away under the click).
Tested on Xvfb: dtterm's Window/Edit/Options/Help in the bar, no menu bar in
the window with two tabs, Window > New Tab from the bar makes the third.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
include/Mcde/GlobalMenu.h is the protocol (selection _MCDE_BAR_S<n>,
_MCDE_MENU on the program's window, _MCDE_ACTIVE_MENU on the root, client
messages to activate and refresh). libDtSvc's McdeGlobalMenu.c, started by
DtInitialize, finds every XmMenuBar with an Xt create hook, hides it while
the bar runs and writes its tree; a click in the bar calls the button's own
callback -- no Motif patch, every CDE program takes part. The text form is
McdeMenuModel.c with its test (PASS test_menumodel). dtbar: M menu (dtaction
Dtstyle, Dtterm, Dtfile, LockDisplay, ExitSession), the program's menus, the
clock; started by Xsession.d/0090.dtbar. The Mcde headers are installed.
Tested on Xvfb with dtwm and dtcalc: its menu bar leaves its window, Options
and Help are in the bar, Options > Memory Registers opens dtcalc's dialog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>