From b20fca5845b59bf40b61002d70d9b085b13ee8ff Mon Sep 17 00:00:00 2001 From: lotherk Date: Sun, 15 Nov 2026 00:31:01 +0000 Subject: [PATCH] mcdesoundd: the shell is never mapped (t0080 item 5) The top-level shell only owns the selection _MCDE_SOUND_SERVER, but it was realized with mappedWhenManaged on: a 1x1 window at +0+0 that a window manager would frame (review no. 32, unverified until now). Measured on a private Xvfb with xwininfo: before, the shell 0x200010 "mcdesoundd"/Mcdesoundd: Map State IsViewable; after XtSetMappedWhenManaged(top, False): IsUnMapped (the Xt leader window was and is IsUnMapped). The server still receives: an event the theme does not know, sent with `mcdesoundd -event ProbeNoSuchEvent`, is logged by the running server ("has no sound in the theme"). Co-Authored-By: Claude Sonnet 5.5 --- programs/mcdesoundd/mcdesoundd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/mcdesoundd/mcdesoundd.c b/programs/mcdesoundd/mcdesoundd.c index 28afa424..a39d50c3 100644 --- a/programs/mcdesoundd/mcdesoundd.c +++ b/programs/mcdesoundd/mcdesoundd.c @@ -200,6 +200,10 @@ main(int argc, char **argv) } area = XtVaCreateManagedWidget("sound", xmDrawingAreaWidgetClass, top, XmNwidth, 1, XmNheight, 1, NULL); + /* the shell is only the owner of the selection: realized, so that the + * window exists, but never shown (a 1x1 window the window manager + * would frame, measured: Map State IsViewable; tasksd t0080) */ + XtSetMappedWhenManaged(top, False); XtRealizeWidget(top); service = XtWindow(area);