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>
22 lines
691 B
C
22 lines
691 B
C
/*
|
|
* WmMcdePanel.h -- MCDE: the programs left of the trash in the front panel
|
|
* (WmMcdePanel.c)
|
|
*
|
|
* Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE.
|
|
*/
|
|
|
|
#ifndef _WmMcdePanel_h
|
|
#define _WmMcdePanel_h
|
|
|
|
#include <X11/Intrinsic.h>
|
|
|
|
/* after the main panel's controls are made (UI.c, MainControlCreate) */
|
|
extern void McdePanelCreate(void);
|
|
/* the menu button pressed on FORM (PopupMenu.c, PostPopupMenu): True when
|
|
* it was over the part, whose own menu is then posted */
|
|
extern Boolean McdePanelPost(Widget form, XButtonEvent *ev);
|
|
/* a window came or went (WmManage.c): the part is redrawn soon */
|
|
extern void McdePanelChanged(void);
|
|
|
|
#endif /* _WmMcdePanel_h */
|