Files
mcde/lib/DtSvc
lotherkandClaude Opus 5.5 57c817fe42 mcde: every MCDE window carries _NET_WM_PID and WM_COMMAND
The front panel starts a kept program again with its command; CDE's
programs did not say it: dtterm's windows had neither WM_COMMAND nor
_NET_WM_PID, so the panel fell back to the class name.  libDtSvc's new
McdeWmHints.c sets _NET_WM_PID (EWMH) on every top-level shell when it is
first mapped, and WM_COMMAND (ICCCM 5.1.1.1) from the application shell's
XtNargv where Xt has not set it; shells made later are found through Xt's
create hook.  It runs from _DtMcdeGlobalMenuInitialize, which DtInitialize
calls and dtterm calls by itself (dtterm does not call DtInitialize), and
before that function's MCDE_NO_GLOBAL_MENU check.

Measured on Xvfb: dtterm -geometry 40x5 now has _NET_WM_PID and
WM_COMMAND { dtterm, -geometry, 40x5 }; dtcalc has _NET_WM_PID and
WM_COMMAND { dtcalc }.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:28:24 +00:00
..