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.
dtsystemsettings has a Workspace menu on the Desktop page: This
Workspace (the active one) or one of the named workspaces, read from
DtWsmGetWorkspaceList. A chosen backdrop goes to that workspace: dtwm
learned f.change_backdrop_ws INDEX PATH PIXMAP STYLE (the same parse as
f.change_backdrop, with the workspace index first) and
McdeBackdropFromFile on pSD->pWS[INDEX]; SetNewBackdrop keeps the choice
with SaveWorkspaceResources, so dtsession carries it to the next login
and ChangeToWorkspace shows it. Measured under Xvfb: the menu lists
This Workspace, One, Two, Three, Four; Two + Ankh.bm printed
'dtwm: backdrop ws=1 .../backdrops/Ankh.bm style=0'. WmMain.c now
includes WmFunction.h (the MCDE prototypes were implicit).
f.change_backdrop with pixmap 0 makes dtwm load the picture itself
(XmGetPixmap: JPEG and PNG through Motif), and the request is parsed from
its end, so a path may hold blanks. f.mcde_slideshow INTERVAL RANDOM STYLE
FOLDER, and the resource Dtwm*mcdeSlideshow at the start, change the
backdrop of every workspace every INTERVAL minutes, in order or at random;
the folder is read anew each time. Fit and Fill scale with Xrender's
bilinear filter instead of the nearest pixel.
Measured on Xvfb (build/mcde-shots/slide-*.png): c-red.jpg from "My
Pictures" filled the screen; the slideshow showed a-blue.jpg at once,
fitted, and the next picture after one minute; dtwm kept running.
Found: Motif 2.3.8 draws an RGB PNG without alpha as its blue channel only
(lib/Xm/Png.c shifts right where it must shift left);
docs/reference/motif-png.txt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>