Commit Graph
4 Commits
Author SHA1 Message Date
lotherk fed6f4c294 dtwm: the panel says which pointer it wants
The busy cursor was created and thrown away (_DtGetHourGlassCursor's return
value went nowhere), so BUSY_START defined cursor None on the panel and the
pointer fell back to whatever the shell had inherited.  On the MacBook that
was a black 16x16 square (measured with XFixes: 16x16, hotspot 8,8, every
pixel black, serial 16) over the whole front panel, while the root and the
xterm showed the arrow and the I-beam.

The return value is kept now, and the panel defines the standard arrow on
itself when it is mapped instead of inheriting one from its frame.

Measured: make -C programs/dtwm rc=0, 0 errors (build/logs/dtwm-cursor.log).
2026-11-22 09:53:16 +01:00
lotherk 4663ea653c MCDE front panel: icons in and out of the drawers (t0258, part 2)
The drawers were half done: the drop wrote ~/.dt/panel-drawers and the dock
icon went away, but the icon never showed, because it was added to an already
realized form and sat below the drawer's height.

- WmMcdePanel.c: the drawer's icons (SUBPANEL/TAB/CLASS/TAB/COMMAND in
  ~/.dt/panel-drawers) are widgets in the subpanel's form; the last one takes
  the form's bottom attachment over from the previous last child, as CDE's
  own last control does in SubpanelControlCreate -- that is what makes the
  form, and the drawer, as high as its contents.  A drag from the dock onto a
  drawer's main-row control stores the class and command and leaves the dock;
  a drag from the drawer onto the dock keeps it and removes it from the file.
  A program in a drawer is not shown again in the dock.
- UI.c: SubpanelCreate calls McdePanelFillDrawer at its end, after the CDE
  controls and before the form is first laid out.  (An earlier hook in
  AddSubpanel never ran for the standard drawers: those are made by
  SubpanelCreate from MainControlCreate.)
- WmMcdePanel.h: the declaration.

Measured in Xvfb (1280x800, fresh HOME, ttsession + dtwm + dtbar):
- with ~/.dt/panel-drawers holding "FilesSubpanel XClock 'xclock' '-digital'",
  the opened Files drawer shows the clock icon under Downloads; the log says
  "drawer 'FilesSubpanel' to 311 pixel high for 1 icons", form and shell 311
  (before the change: form 244, icon at y=244 outside);
- dragging that icon from the drawer onto the dock: panel-drawers empty,
  panel-apps "XClock 'xclock' '-digital'" (screenshot: the icon in the dock);
- dragging the running xeyes icon onto the Files control: panel-drawers
  "FilesSubpanel XEyes 'xeyes'" and the dock back to 0 buttons.

make mcde-linux MCDE_DIRS="install programs/dtwm" exit=0.  An icon added
during a running session shows in its drawer after the next session: the
posted drawer keeps the height it was created with.
2026-11-16 09:30:18 +00:00
lotherkandClaude Opus 5.5 0987753527 mcde: the front panel shows the open programs left of the trash
CDE's front panel stays as it is.  Left of the trash it gets one part of
MCDE's (dtwm/WmMcdePanel.c): first the programs kept in the panel
(~/.dt/panel-apps), then the running programs no main panel control names.
A click brings a window forward on its workspace, or starts a kept
program; the right button offers Keep in Panel / Remove from Panel, and
dragging a running one to the left with the button held keeps it too.
The command to start a kept program comes from WM_COMMAND, else from the
process of _NET_WM_PID through the new mcde_sys_process_command (NetBSD:
sysctl kern.proc_args, Linux: /proc/PID/cmdline), else the class.

The buttons are CDE's panel controls (_DtCreateControl) with the class's
icon; a blank of the same width in the arrow row keeps every drawer's
arrow over its control; colour and pattern come from the panel row, so the
part follows the palette.  Hooks: UI.c (MainControlCreate), WmManage.c
(manage, unmanage), PopupMenu.c (the menu button over the part).

Measured on Xvfb (build/mcde-shots/panel-*.png, theme-*.png): dtterm and
dtcalc appear left of the trash; Keep in Panel wrote "Dtterm	dtterm",
the drag "Dtcalc	'dtcalc'"; with none running a click on the kept
dtcalc started it; in a dtsession with the Default and the Arizona palette
the part has the panel's colours and the bar, the panel and the windows
all change with the palette.

www: the front panel and the colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:16:06 +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