Wayland compositor
dtwm-wayland is CK Core CDE's optional wlroots-0.19 Wayland compositor, built
alongside classic X11 dtwm when --enable-wayland (default=auto) finds the
Wayland compositor development stack. It lets native Wayland clients and
Motif/X11 clients share one CDE desktop session without giving up CDE's visual
framing or interaction rules.
Server-side CDE 3D bevel decorations
dtwm-wayland negotiates server-side decorations through
zxdg_decoration_manager_v1 for Wayland xdg_toplevel windows and reads
_MOTIF_WM_HINTS decoration flags for rootless Xwayland clients:
- Mitered 3D top- and bottom-shadow bevel borders (
cde_bevel.c) matchdtwm'sBevelRectanglegeometry across all four CK Core Motif ABI 9 appearance profiles (classic,modern_light,modern_dark, andhigh_contrast, harmonized withModernLight.dp,ModernDark.dp, andHighContrast.dp), switchable at launch via--appearance-profile PROFILEor live via X11RESOURCE_MANAGER*appearanceProfile:updates and_DT_WM_REQUEST(f.set_appearance_profile PROFILE); - Corner resize-handle grooves (
NW,N,NE,E,SE,S,SW,W), the left MWM Window Menu button (Restore,Move,Size,Minimize,Maximize,Lower,Close), centered embossed title bar, and Minimize/Maximize buttons frame both Wayland and XWayland windows identically; - Server-side frames compose a palette-matched
client_bg_rect, a client-clippedcontent_tree, four tight opaqueDRM_FORMAT_XRGB8888bevel border strips (frame_top_buf,frame_bottom_buf,frame_left_buf,frame_right_buf) rendered directly in1:1integer physical pixels (DtwmMetrics, with Pango context resolution set to the output's targetDPIandWLR_SCALE_FILTER_NEAREST), and an unclippedpopup_anchor_treeabove the borders so popup menus extend freely outside the window while keeping hinted Retina titlebar text and eliminating strip seams, full-windowARGB8888shadow buffers, and client interior overhang; - XWayland client coordinates are offset by the frame's left and top insets so override-redirect Motif popup menus and dropdowns align directly beneath their parent menu bars.
Window management interactions
dtwm-wayland preserves the CK Core dtwm interaction model:
- Double-clicking a title bar or pressing the Maximize button toggles
maximize/restore, and double-clicking the top-left Window Menu button (
[ - ]) closes the window; - Backend-aware minimize/restore and maximize/restore animations (
Dtwm*minimizeAnimation,Dtwm*maximizeAnimation, andDtwm*animationSpeed):dtwm-waylanddrives window transitions from per-output vsync frame callbacks with mid-flight reversal and unmap/lock cancellation. Style Manager → Window dynamically detects Wayland vs. X11 and exposes the matching choices for each backend together with an Animation Speed selector (Very Quick,Standard[default], andSlow, live-configurable viaDtwm*animationSpeedorf.set_animation_speed):- Wayland (
dtwm-wayland): Bevel Morph / Bevel Glide (bevel, default — zero-copy live client surface morph framed by crisp unscaled2pxMotif bevels and a subtle mid-flight3×3CAD hairline that keeps the live window surface crisp across the workspace and symmetrically crossfades into/from the desktop icon tile only near the icon, finishing with a mechanical Motif bevel latch on arrival), Titlebar Shuttle (titlebar— detached 3D CDE title bar gliding into the icon tile or maximized bounds), Wireframe (wireframe— palette-tinted3×3CAD wireframe with phosphor decay trail), and None (none); - X11 (
dtwm): Wireframe (wireframe, minimize default), Titlebar (titlebar, flying caption-bar outline), and None (none, maximize default), honoringDtwm*animationSpeed, preserving legacyDtwm*animateMinimizeRestorecompatibility, and automatically falling back when roaming$HOMEbetween Wayland and X11 sessions;
- Wayland (
- Clicking or dragging a window title bar, frame border, window button, native
Wayland surface of another client, or desktop background dismisses any open
client popup or Motif menu (
XmMenuShell/xdg_popup), whilexdg_popupreposition events (xdg_popup.reposition) re-unconstrain sharedXmMenuShellpulldowns as the user moves across menu-bar cascades and holding a mouse button during menu-bar press-drag-release keeps Wayland pointer focus on the grabbed client surface across pulldown items until release; - Interactive window resizing suppresses no-op configures, enforces 1-in-flight
latest-wins
wlr_xdg_toplevel_set_sizeserial tracking (pending_resize_serial), setswlr_xdg_toplevel_set_resizing, and defers outer frame geometry updates untilxdg_toplevel_commit(anchoring right/bottom edges when dragging left or top borders) so frame bevels and client contents resize in lockstep without interior overhang or blank flashes. Paired with CK Core Motif'sXtAppAddWorkProcsynchronizedxdg_surface.ack_configurecommits, persistent 4-slotwl_shm_poolbuffer reuse, nonblockingWL_EVENT_WRITABLEcompositor property IPC, anddtfile'sTryFastResizeFileWindow+ debounced ergonomics broadcasts, bothdthelpviewanddtfilesustain 60 Hz interactive resizing with live icon column reflow, whileDtHelpdisplay and TOC canvases support mouse-wheel scrolling (Button4/Button5and horizontalShift+Wheel/Button6/Button7); - Holding
Shiftduring pointer move or resize aligns geometry to the 16-pixel desktop grid; - Dragging toward output edges or corners previews half-screen and quadrant snap placement and commits on release, and dragging the shared inner border between adjacent tiled or edge-snapped windows resizes all paired split peers together in lockstep while clamping against each neighbor's minimum dimensions;
- Tapping bare
Super, pressingSuper+Tab/Super+W(f.toggle_overview/f.show_overview/f.hide_overview), or performing a three-finger vertical touchpad swipe-up opens the Live Spatial Window Overview, rendering top 3D-beveled CDE workspace switcher pills above a spatial grid of live scaled client surface thumbnails that update dynamically on every client commit, with pointer click-to-activate, arrow/Tab/Return/Escapekeyboard navigation, three-finger swipe-down dismissal, and_DT_WAYLAND_OVERVIEW_STATEstatus reporting (Super+SpaceandAlt+F2invokeck-launch, andDTWM_SUPER_ACTION=launcherrestores bare-Superlauncher activation if preferred); - Pressing
Alt+Tabopens and cycles the centered 3D-beveled keyboard task switcher, andAlt+Spaceopens the window menu; - Focus-stealing prevention and startup tokens (
xdg_activation_v1):dtwm-waylandadvertisesxdg_activation_v1(15-second token lifetime), tying token creation and consumption/expiry directly into_DT_PANEL_BUSY_START_SEQand_DT_PANEL_BUSY_STOP_SEQover both XCB and native Wayland IPC so the Front PanelCONTROL Busyindicator blinks during native Wayland application startup even under--no-xwayland. Valid tokens unminimize, switch to the target workspace, raise, and focus both newly mapped and already-open single-instance windows (withlibDtSvcDtActionInvoke,dtwm-panel,dtfileOpen With,dtmailHTML/OAuth/iTIP handoffs, andck-launchmintingXDG_ACTIVATION_TOKENviaXmWaylandRequestActivationToken), while unauthenticated background window maps and seatless self-activation requests are kept beneath the active window without stealing keyboard focus while the user is typing; - Pointer lock, relative motion, and shortcut inhibition (
zwp_pointer_constraints_v1,zwp_relative_pointer_v1,zwp_keyboard_shortcuts_inhibit_v1):dtwm-waylandsupports unobstructed relative pointer motion,LOCKEDand region-CONFINEDpointer constraints (honoringset_cursor_position_hintwarping on unlock), and keyboard shortcut inhibition for nested VMs (QEMU/virt-manager), FreeRDP/VNC clients, 3D/CAD viewports, and games. Active capture appends[Captured — Ctrl+Alt]to the window's CDE bevel title bar, displays an OSD banner, and publishes_DT_WAYLAND_INPUT_CAPTURE; tapping a bareCtrl+Altchord (orCtrl+Alt+Escape) releases both pointer lock and shortcut inhibition immediately, and clicking back inside the client area cleanly re-engages persistent constraints; - Server-side cursor shapes (
wp_cursor_shape_v1), touchscreen (wl_touch), and graphics tablet / stylus (zwp_tablet_v2):libXmbindswp_cursor_shape_manager_v1(requesting crisp server-rendered HiDPI cursor shapes for standardXC_*glyph cursors while uploading custom bitmap cursors) andwl_touch(mapping single-finger taps/drags toButton1and two-finger panning to smooth scrolling), whiledtwm-waylandattaches touchscreens,zwp_tablet_v2styluses (pressure, tilt, distance, rotation, slider, barrel buttons, andget_tablet_tool_v2cursor shapes), and ExpressKey tablet pads (buttons, rings, and strips) with automatic pointer and CDE titlebar/border drag fallback for non-tablet windows; - Color management (
wp_color_manager_v1+dtstyleGUI profile picker + per-surface HDR10 tone mapping) and live mixed-DPI cross-monitor window dragging:dtwm-waylandexposeswp_color_manager_v1(parametricandset_mastering_display_primariesfeatures acrosssRGB,Display P3,DCI-P3,Adobe RGB, andBT.2020primaries plussRGB,Gamma 2.2,BT.1886,ext-linear,ST.2084 PQ, andHLGtransfer functions), dynamically updates per-surface preferred image descriptions to match the active monitor profile, tracks client HDR/wide-gamut surface metadata (_DT_WAYLAND_COLOR_STATEand_DT_COLOR_PROFILE_STATE), loads per-outputsRGB,Display P3,HDR10 (BT.2020 PQ), or custom.icc/.icmLUT transforms via Style Manager → Display & Monitors (Color Profile picker, persisted in~/.dt/display_ergonomics.conf),DTWM_ICC_PROFILE, orf.set_output_color_profile <name|idx|all> <default|srgb|display-p3|hdr10|/path/to/profile.icc>, and tone-mapsST.2084 PQ/HLG/BT.2020/Display P3surfaces onto SDR outputs via a GLES2 fragment shader (gles2_shader) or LUT-accelerated CPU pass (cpu_lut) while leaving adjacent SDR windows untouched and switching to passthrough onHDR10outputs. When dragging windows live across mixed-DPI monitors (192 DPI↔144 DPI↔96 DPI),dtwm-waylandmaintains proportional horizontal and titlebar cursor-grab ratios, rescales externalwp_fractional_scale_v1windows atomically with zero single-frame size jumps, and streamsSURFACE_POSupdates toCLIENT_CAP native_dpiMotif windows while locking CDE bevel metric transitions to the client's rescaled buffer commit; - Left-clicking the desktop background clears active-window focus, while
right-clicking opens the 3D-beveled Workspace Menu (supporting both
click-to-post and Motif press-drag-release, plus
Up/Down/Enter/Esckeyboard navigation) with matching actions across Wayland (dtwm-wayland) and X11 (dtwmDtRootMenu): Open Terminal, Open File Manager, Application Manager, Change Backdrop... (dtstyle -backdrop), Display Settings... (dtstyle -monitors), Style Manager..., Clean Up Icons, Shuffle Up, Shuffle Down, Minimize/Restore Front Panel, Refresh, Lock Screen, and Log Out....
CDE workspaces, per-workspace backdrops, and Front Panel
cde_workspace.c implements CDE's multi-workspace desktop model across both
Wayland and XWayland clients:
- Four default workspaces (
ws0= One,ws1= Two,ws2= Three,ws3= Four) with dynamic workspace creation, renaming, and deletion up to eight workspaces, per-window occupancy bitmasks, and the Occupy All Workspaces / Unoccupy Other Workspaces action in the CDE Window Menu; - Per-workspace CDE
.pm(XPM) and.bm(XBM) backdrop rendering (KnitLight,WaterDrops,SkyDark,Paver, and/usr/dt/backdropsassets, honoringDtwm*ws0..ws3*backdrop*image) recolored dynamically to each workspace's CDE color set in tiled, centered, or scaled mode; - Full XWayland
libDtSvcWorkspace Manager property bridge publishing_MOTIF_WM_INFO,_DT_WORKSPACE_LIST,_DT_WORKSPACE_CURRENT,_DT_WORKSPACE_INFO_<ws>, and per-window_DT_WORKSPACE_PRESENCE, honoring client_DT_WORKSPACE_HINTS(DtWsmSetWorkspacesOccupied,DtWsmOccupyAllWorkspaces), and servicing_DT_WM_REQUESTcommands (f.change_backdrop,f.goto_workspace,f.add_workspace,f.delete_workspace,f.set_workspace_title), withlibDtSvcfalling back cleanly to_DT_WM_REQUESTwhenttsessionis not active; - Native Wayland
ext-workspace-v1server global (ext_workspace_manager_v1) advertising workspace groups, coordinates, active state, and atomic commit activation/creation/removal; - Hosts the genuine CDE Front Panel (
dtwm-panel, built directly fromdtwm'sWmFP.c,UI.c,DataBaseLoad.c,Clock.c,Button.c,Callback.c,PanelS.c,PopupMenu.c, andSession.c) on the primary output with full.fpdatabase loading (/usr/dt/appconfig/types/C/dtwm.fpand~/.dt/types/*.fp), slide-up subpanels (DtWM_BEHAVIOR_SUBPANEL),DtActionInvokecontrols, liveCONTROL Busyactivity-indicator blinking (Fplite↔FpliteY+ busy watch cursor driven by ToolTalkDtActivity_Beginning/DtActivity_Begannotices, compositor launcher spawns, and automatic completion turn-off when a new native Wayland or XWayland top-level window maps), right-click Add Subpanel / Delete Subpanel context menus on both main controls and the subpanel arrow bar above them, X11-faithful docked subpanel persistence (staying open when clicking the desktop ordtfileso items can be dragged onto Install Icon, closing on arrow toggle or docked control activation), transparent 32-bit ARGBXmDRAG_WINDOWdrag-and-drop icons fromdtfileand Motif applications,Ctrl+Alt+1..8andCtrl+Alt+Left/Rightshortcuts, and bottom strut reservation (dtwm_get_usable_output_box) respected by maximized and edge-snapped windows (--no-paneland--greeterhide the panel when needed).
Open-window desktop icons, live dynamic icons, and Front Panel swallowing
cde_icons.c brings CK Core CDE's desktop icon and Front Panel embedding
contracts to Wayland without requiring application code changes:
- Open-window and minimized desktop icons (
Dtwm*showOpenWindowIcons),Top Leftplacement (Dtwm*iconPlacement), 3D open-window indicator bars, and interactive CDE Icon Box (Dtwm*useIconBox): Publishes_DT_WM_SETTINGS_V1(DT_WM_SETTINGS_V1_SHOW_OPEN_WINDOW_ICONSandDT_WM_SETTINGS_V1_USE_ICON_BOX) on both the workspace-manager window and the XWayland root window, places desktop icons alongTop Leftby default (with fullDtwm*iconPlacementandDtwm*iconPlacementMarginsupport plus bottom-leftFrontPanelFpfpminworkspace icon placement), renders sunkenselectColorbevels for open windows and raised bevels for minimized windows with_NET_WM_ICON_NAME/WM_ICON_NAMElabels and a separate10 px3D open-window focus indicator bar7 pxto the right of each open icon (matching X11dtwmWmIDecor.c), toggles minimize when clicking an already-focused open window's icon, and switches live to a movable, resizable, mouse-wheel-scrollable CDEIcons(Icon Box) window when Use Icon Box is selected inStyle Manager - Window; - Normal (
48×48) and increased (96×96)WM_ICON_SIZE: PublishesWM_ICON_SIZEon the XWayland root window and supports live switching via--large-iconsor_DT_WM_REQUEST(f.set_large_icons 0|1,f.set_open_window_icons 0|1); - Full CDE client icon resolution and live dynamic icons across XWayland and
Wayland: Resolves
Dtwm.defs/ xrdbDtwm*<Class>*iconImagemappings (Fpstyle,Fpterm,Fphelp,Fppenpd,Dtcalc,DtMail,Dtpaint,Fpfpmin, etc.), CDE.dtACTIONICONentries viaWM_COMMANDand_NET_WM_PID, symbolic.pm/.bmicons,_NET_WM_ICON, live XWaylandWM_HINTSIconPixmapHint+ 1-bitIconMaskHintshape masks (ck-clock,ck-load,ck-eyes,ck-coins,ck-plasma-1,ck-browser), and the native Waylandxdg-toplevel-icon-v1server global (xdg_toplevel_icon_manager_v1); - Global cursor tracking for
ck-eyes: Publishes per-windowWM_STATE(NormalState/IconicState) and_NET_WM_ICON_GEOMETRY, and synchronizes the XWayland root pointer whenever the cursor moves across native Wayland surfaces, the Front Panel, or the desktop background; dtfilepinned desktop icons and genuine Front Panel / Subpanel UX: PlacesdtfileDesktop.cworkspace objects indesktop_icon_treebelow normal application windows without duplicate open-window icons, keeps the classic CDE analogClockas the default Front Panel clock, tracks openTrashwindow state (_DT_TRASH_WINDOW/Fptrsh5), constrains inline workspace rename editing to the exact toggle button geometry, and opens subpanels docked and frameless (Fpupclosed /Fpdownopen) until dragged away into a titled tool window (_DT_SUBPANEL_TORN_OFF). Optional.fpTYPE clientcontrols (such asCLIENT_NAME ck-clockin~/.dt/types/ckclock.fp) embed directly insidedtwm-panelviaXReparentWindow(with--swallow NAMEretained as an explicit compositor override).
Cross-protocol drag-and-drop, ck-grab screencopy, and mixed-DPI scaling
dtwm-wayland pairs with CK Core Motif ABI 9 (libXm.so.9) and ck-grab so
clipboard/drag-and-drop, screenshots, and mixed-DPI multi-monitor setups work
across native Wayland and XWayland clients simultaneously:
- Bidirectional Motif XDND v5 ↔ Wayland
wl_data_devicedrag-and-drop: Native Wayland drags (wl_data_device.start_drag, includingdtfilefile-view and Shelf drags via CK Core Motif'sXmDragOverShellwl_drag_iconsurface) render cursor-attached folder/file drag icons inoverlay_tree—excluded fromdesktop_view_atpointer hit-testing so the icon never shadows underlying drop sites—and bridge automatically to MotifXmDropSitetargets viawlroots's XDND v5 forwarder, whilecde_xdnd_bridge.cwatchesXdndSelectionvia XFixes ondtwm-wayland's XCB connection and promotes active MotifXmDragStartdrags into awlr_drag(text/uri-list,UTF8_STRING,text/plain;charset=utf-8) the moment the pointer enters a native Wayland surface — preserving native X11-to-X11 Motif drags untouched over XWayland surfaces; ck-grabWayland screencopy, region overlay, and clipboard (zwlr_screencopy_manager_v1,zwlr_layer_shell_v1,zwlr_data_control_manager_v1):dtwm-waylandpublishes_DT_ACTIVE_WINDOW_BOX(outer_x,outer_y,outer_w,outer_h,client_x,client_y,client_w,client_h) on the XWayland root window, grants keyboard/pointer focus to interactivezwlr_layer_shell_v1LAYER_OVERLAYsurfaces, and advertiseszwlr_data_control_manager_v1alongsidewl_data_device_managersock-grabcaptures active native Wayland windows, interactive drag-rectangle regions (--region/Shift+Print), and stitched multi-output desktops and copiesimage/pngdirectly onto the desktop clipboard;- Hybrid
1:1physical Retina DPI for CDE/Motif + per-surface Wayland scaling for external clients:dtwm-waylandkeepswlr_outputandwlr_sceneat1.0(1:1integer physical pixels, e.g.3840×2400) while tracking per-outputDPI(96,120,144,168,192, ..., persisted asdpi.<output>in~/.dt/display_ergonomics.confand configurable at startup via--output-dpi NAME_OR_IDX=DPIorDTWM_WAYLAND_OUTPUT_DPI, and live via Style Manager → Monitorsf.set_output_layoutorwlr-randr --scale). CK Core Motif and CDE clients negotiateCLIENT_CAP native_dpiover the compositor IPC channel, receive per-output physical CRTCs +"DPI"via virtualRANDR1.5 andXft.dpiinRESOURCE_MANAGER, scale icons and 1-bit masks viaXmGetScaledPixmap+XmeGetScaledMask, and commit1:1physicalwl_shmbuffers with zerowp_viewportresampling—remaining pixel-exact at both integer (200%/192 DPI) and fractional (125%/120 DPI,150%/144 DPI) scales and odd window widths. Simultaneously, external non-Motif Wayland clients (foot, GTK4, Qt6, Firefox, Electron) receive per-surfacewp_fractional_scale_v1(S = dpi / 96.0),wl_compositorv6wl_surface.preferred_buffer_scale(ceil(S)),wp_cursor_shape_manager_v1, and transparent logical-to-physical translation forxdg_toplevelconfigures,xdg_popupconstraints, subsurfaces, andwl_pointerhit-testing; rootlessXwaylandoutputs continue to publish_MOTIF_RANDR_OUTPUT_DPIand"DPI"; - XWayland Motif menu focus, virtual-pointer button recovery, and post-modeset
Screenbounds (dtwm_wayland_main.c,cde_xdnd_bridge.c,DtUtil.c):dtwm-waylandtracks per-device and bitmask pointer button state across physical andzwlr_virtual_pointer_v1(wayvnc) inputs—auto-releasing orphaned buttons on virtual-pointer disconnect or stale cross-button state, filtering off-screen helper windows (_MOTIF_DRAG_WINDOW) during outside-click popup dismissal, re-establishingwl_pointersurface focus before stationary clicks and override-redirectXmMenuShellmap/geometry updates—whileDtInitialize/DtAppInitialize(libDtSvc) anddtfilesynchronize XlibScreendimensions on rootConfigureNotifyso Motif pulldown and popup menus never clamp to boot dimensions after livewlr-randr/ HiDPI output changes.
dtsession Wayland session startup, ext-session-lock-v1, and dtstyle hardware IPC
dtsession --wayland (invoked by /usr/dt/bin/Xsession.wayland),
cde_session_lock.c, and dtstyle integrate CDE's session lifecycle, screen
lock, and Style Manager controls natively with Wayland:
dtsession --waylandsession bootstrap and logout lifecycle: Startsdtwm-waylandifWAYLAND_DISPLAYis not yet active, ensuresttsession -sis running with_SUN_TT_SESSIONmirrored intoTT_SESSIONfor both Wayland and XWayland clients, loadsxrdbresources and the CDE Color Server (InitializeDtcolor), skips X11dtwmfork while keeping XSMP and session restore active, and terminatesdtwm-waylandcleanly on logout whetherdtwm-waylandwas spawned bydtsession(SIGTERM) or started externally beforedtsession --wayland(_DT_WM_REQUESTf.quit_mwm).dtsessionregisters itsXSession_Exithandler withTT_HANDLE_PUSHpriority whiledtwm-panelprovides aTT_HANDLEfallback (verifying live_DT_SM_WINDOW_INFOwindow state), soExitSessionfrom the Front Panel, Workspace Menu, ordtaction ExitSessionexits cleanly withoutTT_ERR_NO_MATCHeven in standalonedtwm-waylandsessions or ifdtsessionexited prematurely;- Native Wayland session persistence (
xdg-toplevel-tag-v1+dt.wayland.session) and Flatpak sandbox isolation (wp-security-context-v1):dtwm-waylandexposesxdg_toplevel_tag_manager_v1so multi-window native Wayland applications tag persistent window roles, snapshots non-X11xdg_toplevelworkspace occupancy, unmaximized geometry, maximized/minimized state, and shell-free percent-encoded/proc/<pid>/cmdline(orflatpak run <app_id>) entries into~/.dt/sessions/{current,home}/dt.wayland.sessionviadtsession'sSmWaylandSaveClients/SmWaylandRestoreClients(f.save_wayland_session/f.restore_wayland_session), and re-applies saved per-workspace geometry on reload. Simultaneously,wlr_security_context_manager_v1andwl_display_set_global_filterhide privileged screen-capture, virtual-input, clipboard-snoop, output-management, session-lock, foreign-toplevel, workspace, and layer-shell globals from sandboxed Flatpak clients while enforcing the verified sandboxapp_id; ext-session-lock-v1andext-idle-notify-v1screen lock:dtwm-waylandimplementsext_session_lock_manager_v1andext_idle_notifier_v1, disabling all non-lock desktop/application/overlay scene trees while locked sozwlr_screencopy_manager_v1and keyboard/pointer shortcuts cannot leak a single pixel or event to underlying windows, covering hotplugged monitors on their first frame, keeping all outputs locked and black if a lock client crashes withoutunlock_and_destroy(), waking an unlocked screen blanker or surfacing the password prompt onext_idle_notification_v1.resumed, and hostingdtsession's genuine Motif padlock PAM dialog (SmLock.c+SmPam.c, supporting both nativeDTWM_VIEW_XDGcoverDialog/lockDialog_popupviews and XWayland views) with immediate keyboard focus inlock_dialog_tree;dtstyleWayland hardware and input IPC: WhenWAYLAND_DISPLAYis set,dtstyle(Protocol.c,Screen.c) readsdtsession's active Screen Saver/Lock state (style.smStateand_DT_WAYLAND_INPUT_STATE) instead of virtual X11XGetScreenSaverand forwards Mouse acceleration/threshold and left-handedness (f.set_pointer_accel,f.set_left_handed), Keyboard auto-repeat and XKB layout (f.set_key_repeat,f.set_xkb_layout), Audio bell parameters (f.set_bell), and Screen blanker/lock timeouts (f.set_saver_timeout) todtwm-wayland, which applieslibinputandwlr_keyboardsettings live and publishes_DT_WAYLAND_INPUT_STATEover both native Wayland IPC and the XWayland root window.
Wayland-capable dtlogin display manager (WP-07)
dtlogin supports local Wayland seats alongside classic X11 local /
local_uid and XDMCP configurations:
waylandandwayland_uiddisplay types inXservers: configuring a seat entry such as:0 Local wayland@tty1 /usr/dt/bin/dtwm-wayland --greeterruns an unprivileged_dtgreeterPAMgreetersession (dtlogin-greeter/pam_systemd.so class=greeter), startingdtwm-wayland --greeterwithSI:localuser:rootXWayland authorization so the genuine Motifdtgreetgreeter maps frameless at(0, 0)with compositor WM shortcuts disabled.- Dynamic FreeDesktop session menu:
dtloginscans/usr/share/wayland-sessions/*.desktopand/usr/share/xsessions/*.desktop, populatingdtgreet's Options → Session menu with CDE (Wayland) first and CDE (X11 / XLibre) second followed by any additional installed Wayland and X11 sessions (filteringHidden,NoDisplay, and missingTryExectargets and disambiguating duplicate names). - Clean VT/seat handoff and PAM session environment: once PAM verification
and any expired-password conversation (
SvcPam.c) succeed,dtloginterminates the greeter compositor to releaselibseat/DRM master, exportsXDG_SESSION_TYPE,XDG_SEAT,XDG_VTNR, andXDG_CURRENT_DESKTOPinto PAM (_DtSvcPamPutenv) and copiespam_getenvlist(_DtSvcPamGetenvlist) into the user session environment, then starts either the chosen Wayland session or a dedicated seat X11 server for X11 sessions and respawnsdtgreetcleanly on logout. The greeter synchronizes its final display updates before returning the selected session status. Process exit closes the X connection.
The live greeter check uses Wayland keyboard input for authentication and
xdotool on its Xwayland display to select the X11 session. Run it in a
disposable guest with no active display manager and use the matching
staged CDE and Motif build.
Workstation & laptop status, desktop notifications, and Front Panel integration (WP-09)
CDE (Wayland) and CDE (X11 / XLibre) share a native Motif workstation and
laptop status architecture designed in the style of classic SunSoft and IBM CDE
panel instrumentation:
- Central Switch Notification Lamp (
dtwm.fp): Slot 3 (POSITION_HINTS 3, belowLock) of the central workspace Switch hostsCONTROL Notifications(MONITOR_TYPE file, polling$HOME/.dt/notifications.unreadevery1.5 swith symbolic-colorFpnotif/FpnotifApixmaps). Incoming FreeDesktop notifications (org.freedesktop.Notifications) display a 3D-beveled CDE toast banner above the Front Panel and light the Switch indicator lamp; clicking the bell opensck-status --tab notifications(CkNotify). - Slide-Up System & Hardware Subpanel (
SystemSubpanel): Positioned aboveDesktop Style(Style), providing one-click access to System Status & Tray (CkStatus), Power & Battery (CkPower), Network & Wi-Fi (CkNetwork), Bluetooth (CkBluetooth), Audio Mixer (CkMixer), Sound & MIDI (CkSound), and Monitors & Display (DtstyleDisplay); Style Manager (dtstyle) also exposes a top-level Sound (Fpsound) launcher alongside Beep (which now offers a live Test button and selectable Classic Beep (Tone) or General MIDI Note system bells backed by~/.dt/beep.confacross bothdtwm-waylandanddtwm). Right-clicking any subpanel item and choosing Copy To Main Panel immediately updates the main Front Panel and persists~/.dt/sessions/dtwmfp.session(saved both on customization and ondtwm-panelSIGTERM/SIGINTshutdown). On shutdown or panel restart, the Wayland compositor gives its panel child time to save this state, then terminates and reaps an unresponsive child so the session can finish. - Live 4-Quadrant Status Gauge (
ck-status --gauge): Can be pinned intoCONTROL Blank2(POSITION_HINTS 8,~/.dt/types/ckstatus_gauge.fp) as a borderless, centered74×54TYPE client(ck-status-gauge) panel instrument showing Wi-Fi signal bars, Bluetooth + notification/StatusNotifierlamp, and either an AA-proportioned battery + AC plug + percentage (on laptops) or a 3D CDE AC mains plug + live CPU usage percentage (on desktop workstations without a battery), with livef.restartreload and client re-embedding support indtwm-panel/dtwm-wayland.
The integration check enumerates the live Xwayland window tree. It skips windows that disappear between queries and still checks that the status window and subpanel are mapped after their Front Panel controls are used.
Graphical multi-monitor arrangement & WebRTC desktop portals (WP-10)
- Style Manager Monitors (
Display.c):dtstyleincludes a dedicated Monitors component (dtstyle -display_dialog/-monitors) with an interactive 3D-beveled monitor-arrangement canvas (click to select, drag with automatic neighbor edge-snapping, Side-by-Side / Stack Vertically / Mirror (0,0) presets, output enable/disable, mode resolution, rotation0°/90°/180°/270°, and per-output HiDPI scale100%–200%). On Wayland it reads_DT_WAYLAND_OUTPUTSand applies live changes viaf.set_output_layout; on X11/XLibre it driveslibXrandr(XRRGetScreenResourcesCurrent/XRRSetCrtcConfigand per-outputDPI). While the dialog is open, a semi-transparent, click-through 3D-beveled corner badge displaying each monitor's large number (1,2,3, ...) and output name (matching the corner badge in the virtual monitor arrangement canvas, with a gold highlight rim on the selected monitor) appears at the top-right of every active screen on both Wayland (f.identify_outputsinlayer_overlay_tree, tracking either_DTSTYLE_DISPLAY_DLG_WINor the nativeStyle Manager - Display & Monitorsxdg_toplevelwhen--no-xwaylandis active) and X11/XLibre (ShapeInputoverrideShelloverlays), and disappears automatically when the dialog closes. - Packaged XDG Desktop Portals (
cde-portals.conf) & D-Bus activation environment:ck-core-cdeinstalls/usr/share/xdg-desktop-portal/cde-portals.confroutingScreenCastandScreenshottowlr(xdg-desktop-portal-wlr+ PipeWire) and synchronizesWAYLAND_DISPLAY,DISPLAY,XDG_CURRENT_DESKTOP,XDG_SESSION_TYPE,TT_SESSION, and CDE icon/datatype/help/infolib search paths (XMICONSEARCHPATH,DTDATABASESEARCHPATH,DTAPPSEARCHPATH,DTHELPSEARCHPATH,DTINFOLIBSEARCHPATH,XBMLANGPATH) into the D-Bus/systemd user activation environment at session startup. - Standard Wayland output & portal protocols (
cde_output_mgmt.c):dtwm-waylandexposeszwlr_output_manager_v1(enablingwlr-randrandkanshi),zwlr_output_power_manager_v1,zxdg_output_manager_v1,zwlr_export_dmabuf_manager_v1,ext_image_copy_capture_manager_v1+ext_output_image_capture_source_manager_v1, andzwlr_foreign_toplevel_manager_v1.
Native Wayland CJK Input Method framework (WP-11)
- Compositor IME relay (
cde_ime.c):dtwm-waylandadvertiseszwp_text_input_manager_v3andzwp_input_method_manager_v2viawlroots-0.19, forwardingenable/disable,surrounding_text,content_type,text_change_cause,preedit_string,commit_string, anddelete_surrounding_textbetween focused Wayland editors/browsers and modern IME daemons (fcitx5,ibus). - Keyboard grab & CJK candidate popups:
zwp_input_method_keyboard_grab_v2intercepts hardware keystrokes for kana/romaji/pinyin conversion while allowing synthetic keys emitted by the IME daemon's ownzwp_virtual_keyboard_v1to pass directly to the client without feedback loops.zwp_input_popup_surface_v2candidate windows are anchored automatically below the client'scursor_rectangle(popup_tree) and clamped to the usable monitor workarea above the docked Front Panel. - Session-lock isolation &
dtstyleInternationalization (I18nEnv.c): Acquiringext-session-lock-v1immediately deactivateszwp_input_method_v2, sendsleavetozwp_text_input_v3, hides candidate popups, and bypasseskeyboard_grabso lock-screen password entry is never exposed to third-party IME daemons. On local Linux workstations,dtstyle's Internationalization dialog (I18nEnv.c) discovers installedfcitx5andibus-daemonbackends alongsidedtimsstart, andXsession.wayland/dtsession --waylandsynchronizeXMODIFIERS,GTK_IM_MODULE, andQT_IM_MODULEso native Wayland and Motif XWayland (XmIm) applications share the same IME daemon.
Application Manager catalog curation, on-demand package installer, and XDG app discovery (WP-12)
dtappintegrate --xdg (dtappintegrate-xdg), ck-pkg-install, ck-browser,
and ck-launch keep Application Manager folders accurate and actionable across
both CDE (Wayland) and CDE (X11 / XLibre):
- Curated catalog detection, auto-gray download badges &
ck-pkg-install: Across curated Application Manager groups (Internet,Graphics,Media_Tools,Office,Games,Education,System,Tex),dtappintegrate-xdgchecks installed executables and batch-queries the system package registry (apt,dnf,yum,pacman,zypper,apk, FreeBSDpkg):- Installed applications (including Web Browser /
CkBrowser→ck-browserinInternet,CkViewinGraphics,CkPdfinOffice,CkMines/CkNibblesinGames, andCkAdmin/CkTasksinSystem) keep their full-color CDE icons and launch directly. - Available in system package registry (e.g.
firefox,chromium,thunderbird): automatically generates desaturated grayscale48×48/32×32/16×16XPM icons (~/.dt/icons/ckavail_<slug>.{l,m,t}.pm) stamped at the bottom-right with a royal-blue downward arrow (↓) and wires double-click to the native Motifck-pkg-installdialog, which displays package metadata, elevates viapkexec+ck-polkit-agent, streams live package-manager output, refreshes Application Manager back to full-color icons on completion, and optionally launches the newly installed app. - Absent from both
PATHand package registry (discontinued legacy stubs such asskypeornxclient): automatically hidden from the user's Application Manager folder.
- Installed applications (including Web Browser /
- Live XDG
.desktopindexing &Superlauncher (ck-launch): Indexes/usr/share/applicationsand~/.local/share/applications(inotifylive reload viadtappintegrate --xdg --watch) intoXDG_*Application Manager groups and bindsSuper/Super+Spacetock-launchfor instant fuzzy application search, window switching, and inline calculator evaluation.
Hardware media/brightness OSD, touchpad configuration, and cross-toolkit dark-mode sync (WP-13)
CDE (Wayland) and CDE (X11 / XLibre) provide unified laptop/workstation
hardware controls, touchpad configuration, and cross-toolkit appearance
synchronization:
- Hardware multimedia, backlight & session keys + non-focus-stealing 3D OSD
(
dtwm-media-ctl): Bothdtwm-waylandand classic X11dtwm(WmEwmh.cpassiveXGrabKeys +sys.dtwmrc) bindXF86AudioRaiseVolume,XF86AudioLowerVolume,XF86AudioMute,XF86AudioMicMute,XF86MonBrightnessUp/Down(enforcing a 5% minimum sysfs brightness floor via/sys/class/backlightorsystemd-logindSetBrightness),XF86KbdBrightnessUp/Down,XF86AudioPlay/Pause/Next/Prev/Stop(MPRISorg.mpris.MediaPlayer2.Player),Print(ck-grab), andSuper+L(dtaction LockDisplay). Volume, microphone, backlight, and media actions render a336×843D-beveled CDE OSD gauge (_DT_OSD_STATE, auto-hiding after1.6 s) without stealing focus from the active window. - Scroll wheel settings, animated cursor previews, laptop touchpad settings (
dtstyle), & 3-finger workspace swipe:dtstyleMouse (dtstyle -mouse) renders premultiplied-ARGB Xcursor previews centered within fixed72×726-column slots across all16–64cursor sizes (without clipping or label baseline shifts) and drives live multi-frame animation for animated busy cursors (such asAdwaita'swatchspinner), adds an etched Scroll Wheel section controlling Direction (Standard vs. Natural for physical/virtual mouse wheels, independent of touchpad natural scrolling), Smooth Scrolling (toggling CK Core Motif's ~83 Hz sub-line/pixel Wayland smooth interpolator vs. discrete notches), and Speed (1..10, default3lines per notch, persisted in*mouseWheelNatural,*mouseWheelSpeed, and*mouseWheelSmoothand applied live viaf.set_scroll_wheel/_DT_WAYLAND_WHEELon Wayland and XInput2 on X11), and provides an etched Touchpad section controlling Tap to Click, Natural Scrolling, Two-Finger Right-Click (clickfingervs. button areas), Disable While Typing, and Disable With External Mouse, persisting*touchpad*X resources while drivinglibinputIPC (f.set_touchpad,_DT_WAYLAND_INPUT_STATE) on Wayland andXInput2(libXi.so.6libinput *properties +_DT_X11_TOUCHPAD_STATE) on X11. Three-finger horizontal touchpad swipes (wlr_pointer_gestures_v1on Wayland; XInput 2.4XI_GestureSwipe*and_DT_WM_SWIPEon X11) switch workspaces forward and backward. - Cross-toolkit dark/light mode synchronization (
cde-color-sync): Started automatically ascde-color-sync --daemoninXsession.wayland,dtsession --wayland, and X11Xsession(owningorg.freedesktop.impl.portal.desktop.cdewithDBUS_NAME_FLAG_ALLOW_REPLACEMENTwhen running standalone and emittingorg.cde.Appearance1.SchemeChangedsoxdg-desktop-portal-cdeseamlessly takes overSettingsalongside all other CDE portals). Switching betweenModernDark.dp(modern_dark),HighContrast.dp(high_contrast), and light/classic palettes indtstyle,dtsession, ordtwm-waylandupdates D-Busorg.freedesktop.portal.Settings(org.freedesktop.appearancecolor-scheme1=prefer-dark/2=prefer-light+SettingChanged), X11_XSETTINGS_S0binary_XSETTINGS_SETTINGS(Net/ThemeName),gsettings, and~/.config/gtk-{3,4}.0/settings.inilive.
Native Motif xdg-desktop-portal-cde (FileChooser, AppChooser, Inhibit, Wallpaper, GlobalShortcuts, Settings, RemoteDesktop & EIS)
cde/programs/dtportal/xdg-desktop-portal-cde (cde.portal +
cde-portals.conf default=cde;wlr;gtk) provides a native CK Core Motif ABI 9
(libXm.so.9) XDG Desktop Portal backend on org.freedesktop.impl.portal.desktop.cde
so Firefox, Chromium, Flatpaks, Electron apps, and Wayland KVM/remote-desktop
clients open genuine CDE Motif dialogs and integrate directly with dtwm-wayland:
FileChooser(OpenFile,SaveFile,SaveFiles): Opens a native MotifXmFileSelectionDialogvalidated viack-core-fs-lib, pre-populated with a CDE Favorites row (Home,Desktop,Documents,Downloads, plus custom entries from~/.dt/dtfile.favorites), file glob/MIME filters (current_filter), dynamic portalchoices(XmOptionMenudropdowns andXmToggleButtoncheckboxes), multi-selection, folder-picker mode (directory),SaveFilesbatch destination selection, andRequest.Close()cancellation.AppChooser(ChooseApplication,UpdateChoices): Presents a Motif application picker backed bylibDtSvc'sDtActiondatabase (DtDbLoad,DtActionExists,DtActionLabel) and XDG.desktopentries, supporting live in-flightUpdateChoiceslist updates andxdg-activation-v1startup token minting (XmWaylandRequestActivationToken).Wallpaper(SetWallpaperURI): Optionally displays a Motif preview confirmation dialog (show-preview), converts PNG/XPM images into a quantized XPM3 backdrop (~/.dt/backdrops/PortalWallpaper.pm), and applies it live to the active workspace via_DT_WM_REQUEST(f.change_backdrop ... 0 2).Inhibit(Inhibit,CreateMonitor,QueryEndResponse): Tracks active client inhibitors (logout,user-switch,suspend,idle), exports$XDG_RUNTIME_DIR/cde-portal-inhibit.state, suppressesdtwm-waylandidle auto-suspend (f.set_portal_inhibit->action=inhibited_by_portal), and emitsStateChangedsession-state signals.GlobalShortcuts(CreateSession,BindShortcuts,ListShortcuts,ConfigureShortcuts): Parses XDG shortcut triggers (<Control><Alt>g,<Super>...), registers live compositor key grabs indtwm-wayland(f.register_portal_shortcut/f.unregister_portal_session), persists bindings in$XDG_CONFIG_HOME/ck-core/global-shortcuts.conf, and emitsActivated/DeactivatedD-Bus signals over the.ipcevent channel.RemoteDesktop(CreateSession,SelectDevices,Start,Notify*,ConnectToEIS): Presents a Motif input-consent dialog with persistentrestore_token(persist_modestored in$XDG_CONFIG_HOME/ck-core/remotedesktop-tokens.conffor non-interactive trusted reconnects), injects pointer, keyboard, and touch events viazwlr_virtual_pointer_v1,zwp_virtual_keyboard_v1, andSYNTH_TOUCH, and implements a native EIS v1 (libeiEmulated Input Server) binary wire-protocolsocketpairendpoint inConnectToEIS(ei_handshake->ei_connection->ei_seat->ei_device+ei_pointer_abs/ei_button/ei_scroll/ei_keyboard/ei_touchscreen).
Polkit authentication, Secret Service PAM auto-unlock, and interactive region/clipboard capture (WP-14)
Both CDE (Wayland) and CDE (X11 / XLibre) integrate native administrative
elevation, automatic Secret Service keyring unlocking, and interactive region
clipboard screenshots:
- Native Motif Polkit Authentication Agent (
ck-polkit-agent): Auto-started inXsession.wayland,dtsession --wayland, and X11Xsession. Registers/org/cde/PolicyKit1/AuthenticationAgentwithorg.freedesktop.PolicyKit1(unix-sessionwithsystemd --userorg.freedesktop.login1.UserDisplaydiscovery andunix-processfallback) and authenticates via Polkit 124+/run/polkit/agent-helper.socket(polkit-agent-helper-1 --socket-activated) or classicpolkit-agent-helper-1pipes inside aPR_SET_DUMPABLE=0hardened, workspace-sticky CDE padlock modal dialog. - Secret Service PAM keyring auto-unlock:
/etc/pam.d/dtlogin(dtlogin.src) wires optional-auth/-session ... auto_start/-passwordpam_gnome_keyring.sohooks and/etc/pam.d/dtsession(dtsession.src) wires-auth optional pam_gnome_keyring.so(while keepingsession required pam_deny.soandpassword required pam_deny.so), paired withgnome-keyring-daemon --start --components=secrets,sshin both Wayland and X11 session startups soorg.freedesktop.secretsunlocks automatically at login without modal prompts. - Interactive
ck-grabregion & clipboard capture (Shift+Print): Bound in bothdtwm-waylandand X11dtwm(WmEwmh.c+sys.dtwmrc) tock-grab --region --clipboard, freezing the desktop behind a dimmed crosshair rectangle selector (zwlr_layer_shell_v1LAYER_OVERLAYon Wayland;XGrabPointerrubber-band overlay on X11) and publishing croppedimage/pngdirectly tozwlr_data_control_manager_v1/CLIPBOARD.
PipeWire audio/mic routing, native Motif Wi-Fi/VPN onboarding, and BlueZ pairing agent (WP-15)
ck-mixer and ck-status share native PipeWire / PulseAudio (libpulse),
NetworkManager, BlueZ, and MPRIS desktop controls across both
CDE (Wayland) and CDE (X11 / XLibre):
- PipeWire / PulseAudio audio & microphone routing (
ck-mixer): Adds Outputs (default sink switching, volume, mute, port switching), Input / Mic (default microphone selection, gain, mute, and a 25-segment live LED peak level meter driven byPA_STREAM_PEAK_DETECT), Applications (per-stream playback & capture volume, mute, and live sink / source routing), and Card Profiles (Bluetootha2dp-sinkvs.headset-head-unitHSP/HFP, HDMI, Pro Audio, Off) alongside ALSA Hardware, running cleanly even when zero hardware ALSA cards are present. - Native Motif Wi-Fi & VPN onboarding +
SecretAgent(ck-status): Adds inline Motif dialogs for WPA2/WPA3-PSK, WPA-Enterprise802.1X(PEAP/TTLS,MSCHAPv2/PAP, identity, CA certificate / system CA, password), Open, and Hidden Wi-Fi networks (AddAndActivateConnection), saved VPN / WireGuard profile Connect/Disconnect, and asynchronousorg.freedesktop.NetworkManager.SecretAgent(/org/freedesktop/NetworkManager/SecretAgent) password prompts. - Built-in BlueZ pairing agent (
org.bluez.Agent1) & MPRIS transport (ck-status): Registers/org/ckcore/bluez/agent(KeyboardDisplay) for non-blocking 6-digit passkey numeric comparison (RequestConfirmation), PIN/passkey entry, and service authorization modals alongside Scan Devices, Pair, Trust / Untrust, and Forget (RemoveDevice), plus MPRIS (org.mpris.MediaPlayer2.Player) track display and Prev / Play-Pause / Next controls.
dtfile removable media (UDisks2), network shares (GVFS), archives, thumbnails, live XDG Trash, and FileManager1 (WP-16)
dtfile delivers shared desktop storage, archive, thumbnail, trash, and D-Bus
file-manager services across both CDE (Wayland) and CDE (X11 / XLibre) (see
File Manager improvements):
UDisks2USB/SD & LUKS volumes +GVFSshares & MTP phones (Devices.c): Dynamically populatesdtfile's Shelf and View → Mounts & Devices... with hotplugged USB/SD drives, Motif passphrase-unlockedcrypto_LUKSvolumes, File → Connect to Server... (smb://,sftp://,davs://,nfs://), and/run/user/$UID/gvfsMTP/PTP phones, with safe Unmount and Eject / Power Off.- Built-in
libarchiveactions, shared thumbnails, live XDG Trash &org.freedesktop.FileManager1: Adds Extract Here, Extract To..., and Compress... (.zip,.tar.gz,.tar.xz,.tar.zst,.7z) with two-passopenat(..., O_NOFOLLOW)Zip-Slip rejection; resolves$XDG_CACHE_HOME/thumbnails/{large,normal}previews; synchronizes$XDG_DATA_HOME/Trashand per-mount<mount>/.Trash-$UIDlive in both directions viainotify; and servesorg.freedesktop.FileManager1(ShowFolders,ShowItems,ShowItemProperties).
dtfile browser ergonomics: tabs, streaming search, clipboard, undo, and folder sync Apply (WP-17)
dtfile and dtfile_sync add multi-tab navigation, cancellable streaming
search, standard file clipboard interop, session undo, and reviewed one-way
folder synchronization across both CDE (Wayland) and CDE (X11 / XLibre) (see
File Manager improvements and
Compare and synchronize folders):
- Multi-tab browsing & navigation shortcuts (
BrowserErgonomics.c): AddsCtrl+T/Ctrl+W/Ctrl+Tab/Ctrl+Shift+Tab, middle-click folder icon and right-click Open in New Tab, per-tab Back/Forward (Alt+Left/Button8,Alt+Right/Button9),Alt+Up,F2inline rename, andCtrl+Hhidden-files toggle. - Cancellable in-window search (
Ctrl+F+ck_fs_search.h): Streams substring/glob filename and regular-file content matches (with size and modified-date filters) intodtfilewith Stop, Open, and Reveal in Folder. - Cross-toolkit file clipboard (
Ctrl+C/X/V), 64-entry Undo (Ctrl+Z) &dtfile_syncApply: Publishes and consumesx-special/gnome-copied-filesandtext/uri-listacross native Wayland (zwlr_data_control_v1/wl_data_device) and X11CLIPBOARDpeers, reverses Rename/Move/Copy/Trash viaCtrl+Z, and enables Apply reviewed plan indtfile_sync(check-dtwm-wayland-wp17.py).
Night Light, Adaptive Sync (VRR), laptop lid/idle policy, keyboard tiling, and CUPS/admin tools (WP-18)
cde_power_display.c, dtstyle (Display & Monitors and Startup), classic
X11 dtwm, dtprintinfo, ck-status, and ck-admin provide unified display
ergonomics, laptop power management, keyboard tiling, driverless printing, and
system administration across both CDE (Wayland) and CDE (X11 / XLibre):
- Night Light, Variable Refresh Rate & backlight persistence (
cde_power_display.c,dtstyle/Display.c,dtwm_media_ctl.c):dtstyleMonitors adds a Night Light & Eye Comfort section (Always On, Night Schedule 20:00–06:00, Sunset to Sunrise, and2700 K–6500 KPlanckian color-temperature scale) plus a per-monitor Variable Refresh Rate (VRR) toggle persisted in~/.dt/display_ergonomics.conf. On Wayland,dtwm-waylandadvertiseszwlr_gamma_control_manager_v1, programs 16-bit hardware CRTC gamma LUTs (wlr_output_state_set_gamma_lut, with a click-through warm scene buffer fallback on zero-gamma headless outputs), and applies per-output adaptive sync (wlr_output_state_set_adaptive_sync_enabled). On X11/XLibre,dtstyleandck-statusapply 16-bit RGB gamma ramps viaXRRSetCrtcGammaand set RandRVariableRefresh/_DT_VRR_ENABLEDoutput properties (reverting cleanly on Cancel). Display brightness changes viadtwm-media-ctlpersist to~/.dt/backlight.confand restore automatically at session login. - Power profiles, idle auto-suspend & laptop lid clamshell policy (
ck-status,cde_power_display.c):ck-status(Power & Battery tab) switchespower-saver/balanced/performanceoverorg.freedesktop.UPower.PowerProfiles(net.hadess.PowerProfilesand/sys/firmware/acpi/platform_profilefallbacks) and persists separate AC/battery idle auto-suspend timeouts and lid-close policy in~/.config/ck-core/power-policy.conf. Closing the laptop lid (WLR_SWITCH_TYPE_LIDon Wayland;org.freedesktop.UPowerLidIsClosedon X11) disables the internaleDP/LVDSpanel in Docked Clamshell mode when an external monitor is active without suspending, and invokesorg.freedesktop.login1.Manager.Suspendwhen undocked on battery. Super+Arrowhalf & quadrant keyboard tiling (cde_power_display.c,WmFunction.c,WmEwmh.c):Super+Left/Right/Up/Down(f.tile_window left|right|up|down) snaps the active window to halves and quadrants of the usable workarea (honoring the Front Panel strut), maximizes on repeatedSuper+Up, and restores the saved pre-tile geometry onSuper+Downidentically indtwm-waylandand X11dtwm.- CUPS / IPP Everywhere in
dtprintinfo&ck-adminSystem Administration:dtprintinfo(CupsDiscovery.C) dynamically loadslibcups.so.2(cupsGetDests2,cupsGetJobs2,cupsCancelJob, plus--cups-summary) to enumerate driverless IPP Everywhere queues and active print jobs without legacy BSDlpstatparsing, whileck-admin(CkAdminCDE action inSystem_AdminanddtstyleStartup) provides anXmTabStackconsole for XDG Default Applications (~/.config/mimeapps.list), Date, Time & NTP (org.freedesktop.timedate1), and Firmware Updates (org.freedesktop.fwupd).
Pure XWayland-free native Motif runtime (--no-xwayland, WP-21 – WP-24)
When paired with CK Core Motif ABI 9 (libXm.so.9 built with --enable-wayland),
dtwm-wayland and dtsession can run the complete CDE desktop and CK Core
companion applications without starting an Xwayland server process:
- Launch modes: Pass
--no-xwayland(-XorDTWM_WAYLAND_NO_XWAYLAND=1) todtwm-waylandordtsession --wayland --no-xwayland. Defaultdtwm-waylandinvocation keeps rootlessXwaylandenabled alongside native Wayland so legacy third-party X11 applications continue to work unchanged. - Native Motif client runtime (
CK_MOTIF_BACKEND=wayland): WithDISPLAYunset under--no-xwayland,libXm.so.9connects each Motif process directly toWAYLAND_DISPLAYvia its in-process X11r11/XRender virtualizer ($XDG_RUNTIME_DIR/ck-wlx11-<pid>-XXXXXX/S:0), mapping shells toxdg_toplevel(zxdg_decoration_v1+xdg_toplevel_icon_v1), menus/tooltips to constrainedxdg_popupsurfaces,CLIPBOARD/PRIMARY/DnD towl_data_device+zwp_primary_selection_v1,XmText/XmTextFieldIME tozwp_text_input_v3, and HiDPI buffers towp_fractional_scale_v1+wp_viewporter. Embedded GPU/multimedia viewports (such asck-browserCEF off-screen rendering) attach synchronizedwl_subsurfaceviewports through<Xm/Wayland.h>(XmWaylandGetDisplayHandles,XmWaylandGetWidgetSurface). - Smart GPU renderer selection, zero-copy
DMA-BUF, and modern buffer/presentation protocols: WhenWLR_RENDERERis unset orauto,dtwm-waylandinspects kernel DRM render nodes (drmGetVersion, plusVIRTGPU_PARAM_3D_FEATURES/VIRTGPU_PARAM_CONTEXT_INITonvirtio_gpu) to select hardware-acceleratedgles2/vulkanon real 3D GPUs while automatically falling back topixmanon unaccelerated 2Dvirtio_gpu/software KMS/headless setups (avoiding slowllvmpipeGLES2 software emulation), publishingDTWM_WAYLAND_RENDERERand_DT_WAYLAND_RENDERER. When DMA-BUF import is supported,dtwm-waylandwireszwp_linux_dmabuf_v1(v4 per-surface scanout feedback viawlr_scene_set_linux_dmabuf_v1) andwp_linux_drm_syncobj_v1explicit timeline synchronization (when supported by both renderer and backend), alongsidewp_presentation(v2 vsync presentation timestamps),wp_single_pixel_buffer_v1(zero-SHM solid buffers),wp_alpha_modifier_v1(per-surface opacity multipliers for GTK4 and video clients),xdg_wm_dialog_v1(automatic modalXmDialogShell/ Wayland dialog parent centering, parent interior dimming, and click/focus modal locking),wp_tearing_control_v1(low-latencyASYNCtearing_page_flipcommits with automatic VSync fallback), andwp_fifo_v1(set_barrier/wait_barrierdisplay-refresh commit queues); meanwhilelibXm.so.9tracks tightpixman_region32_tper-slot buffer-age damage across its 4-slotwl_shmring so small cursor/typing/hover updates on 4K displays copy and damage only changed sub-rectangles. - Native Front Panel docking & session IPC bus:
dtwm-waylanddocks nativedtwm-panel(dtwm-front-panel) and slide-up subpanels (dtwm-subpanel) directly asDTWM_VIEW_XDGsurfaces and hosts an0600UNIX stream bus at$XDG_RUNTIME_DIR/dtwm-wayland-<WAYLAND_DISPLAY>.ipcsynchronizingRESOURCE_MANAGERpalettes/appearance profiles,_DT_WM_REQUESTworkspace and compositor commands,_DT_WAYLAND_OUTPUTSmonitor topology,_DT_WORKSPACE_LIST_NAMES/_DT_WORKSPACE_CURRENT_NAME/_DT_WORKSPACE_INFO_RAW_<ws>workspace backdrop state, and_DT_SM_*Session Manager state acrossdtsession,dtstyle(including all 12 Style Manager dialogs, live embeddedColor & Themewidget preview,Backdrop,Font,Monitors,Window,Startup, andDtHelp),dtwm-panel,dtfile,dtpad,ck-clock,ck-coins, andck-browser.
Readiness reporting, Ubuntu LTS APT packaging, and automated qualification
Passing --status-file PATH writes WAYLAND_DISPLAY, DISPLAY (or
NO_XWAYLAND=1 when --no-xwayland is active), RENDERER, DMABUF, and PID
atomically once the compositor session is ready.
- Focused Wayland regression suite (
programs/dtwmandprograms/dtlogin):check-dtwm-wayland.py(WP-02bevels, move/resize, grid/snap,Alt+Tab, cohort appearance profiles),check-dtwm-wayland-workspaces.py(WP-03workspaces, backdrops,libDtSvc,ext-workspace-v1, and absolute pointer input on two outputs. A maximized native terminal must leave the docked Front Panel visible),check-dtwm-wayland-icons.py(WP-04open-window icons,48/96WM_ICON_SIZE, live XWayland &xdg-toplevel-icon-v1icons,dtfilepins,ck-clockFront Panel embedding),check-dtwm-wayland-wp05.py(WP-05bidirectional Motif XDND v5 ↔ Waylandwl_data_device,ck-grabscreencopy, per-output mixed-DPI reflow),check-dtwm-wayland-wp06.py(WP-06ext-session-lock-v1,ext-idle-notify-v1,dtsession --wayland,dtstyleIPC),check-wayland-dtlogin.py(WP-07_dtgreeter,.desktopsession discovery, Wayland/X11 seat handoff),check-dtwm-wayland-wp09.py(WP-09central Switch notification lamp,SystemSubpanel+Copy To Main Panelpersistence, liveck-status-gaugeembedding,StatusNotifiertray, and toast banner),check-dtwm-wayland-wp10.py(WP-10wlr-randr,dtstyleDisplay & Monitors, 1:1 rotated output geometry with a separately published 192 DPI,zwlr_foreign_toplevel_manager_v1,ext-image-copy-capture-v1, andxdg-desktop-portal-wlr),check-dtwm-wayland-wp11.py(WP-11zwp_text_input_v3,zwp_input_method_v2,zwp_input_popup_surface_v2CJK candidate popups,keyboard_grab, andext-session-lock-v1isolation),check-dtwm-wayland-panel-dnd.py(the mapped Xwayland Front Panel, docked subpanel persistence, and transparent File Manager drag icons),check-dtwm-wayland-wp12.py(WP-12parallel dual Wayland + X11Xvfbverification ofdtappintegrate --xdg --watchliveinotifyindexing,Super/Super+Space→ck-launchlibXm.so.9activation, Waylandzwlr_foreign_toplevel_manager_v1and X11_NET_CLIENT_LIST/_NET_ACTIVE_WINDOWwindow switching, anddtopen/mimeapps.listpersistence),check-dtwm-wayland-wp13.py(WP-13parallel dual Wayland + X11Xvfbverification ofXF86Audio*/XF86MonBrightness*5% floor / MPRIS keys + non-focus-stealing 3D bevel OSD,dtstyletouchpad settings + 3-finger workspace swipe, andcde-color-syncportal /XSETTINGS/ GTK3-4 dark-light sync),check-dtwm-wayland-wp14.py(WP-14parallel dual Wayland + X11Xvfbverification ofck-polkit-agentlibXm.so.9+PR_SET_DUMPABLE=0password retry/elevation/cancellation,gnome-keyring-daemonsecret-toolauto-unlock round-trip, andck-grab --region --clipboard+--paste-pngpixel-accurate crop/clipboard transfer),check-dtwm-wayland-wp15.py(WP-15parallel dual Wayland + X11Xvfbverification ofck-mixerPipeWire sink/source/stream/profile routing + zero-ALSA fallback + live mic peak meter, andck-statusWPA2-PSK / WPA-Enterprise802.1Xonboarding, VPNSecretAgent, BlueZAgent1pairing, and MPRIS transport),check-dtwm-wayland-wp16.py(WP-16parallel dual Wayland + X11Xvfbverification ofdtfilelibXm.so.9UDisks2LUKS unlock/hotplug/eject,GVFSConnect to Server + MTP phoneinotifydiscovery, 5-format archive round-trips + Zip-Slip rejection, FreeDesktop thumbnail resolution,org.freedesktop.FileManager1window raise + selection, and live bidirectionalinotifyXDG +.Trash-$UIDTrash),check-dtwm-wayland-wp17.py(WP-17dtfiletabs, cancellable search, clipboard, undo, and Folder Sync execution),check-dtwm-wayland-wp18.py(WP-18parallel dual Wayland + X11Xvfbverification ofdtstyle3400 KNight Light gamma/warm scene tint + VRR +backlight.confpersistence,Super+Arrowhalf/quadrant/restore window tiling honoring Front Panel struts,ck-statusPowerProfiles + docked clamshell vs. battery lid suspend + idle auto-suspend,dtprintinfoCUPS IPP Everywhere queue/job discovery, andck-adminmimeapps.list/timedate1/fwupd+-sessionrestore),check-dtwm-wayland-wp19.py(WP-19parallel dual Wayland + X11Xvfbverification of actionableck-tasksprocessSIGKILL/renice/live network & per-core charts/systemd1D-Bus control,ck-viewPNG/JPEG/WebP/SVG/TIFF/XPM rendering + rotate/crop +DtWsmChangeBackdrop+-sessionrestore,ck-pdfoutline/search/clipboard/CUPS print +-sessionrestore,dtpadtabs/line numbers/crash-recovery autosave, anddtcmRFC 5545.icsround-trips),check-dtwm-wayland-wp20.py(WP-20parallel dual Wayland + X11Xvfbverification ofAccessXSticky/Slow/Bounce keys, visual bell, cursor-tracking magnifier, andlibXm.so.9AT-SPI2 D-Bus bridge),check-dtwm-wayland-wp24-noxwayland.py(WP-24Track 2 pure XWayland-freedtwm-wayland --no-xwaylandsession with zeroXwaylandprocesses, docked nativedtwm-panel,dtstyle,dtfile,dtpad,ck-clock, andck-coinsmappinglibXm.so.9, live.ipcworkspace andmodern_darkRESOURCE_MANAGERbroadcasts, plus parallel hybrid Wayland+XWayland verification),check-dtwm-wayland-hidpi.py(hybrid1:1physical Motif + per-surface external Waylandwp_fractional_scale_v1/preferred_buffer_scaleHiDPI at192,144fractional, and96DPI with odd-width501×301client buffers and 4-quadrant pointer coordinate verification using one virtual pointer across the DPI changes. SetMOTIF_PREFIXto select the ABI 9 installation for the Motif probe),check-dtwm-wayland-menus.py(XWayland Motif pulldown/popup menu focus, mid-presszwlr_virtual_pointer_v1crash cleanup,wayvncstuck-button auto-heal, stationary-clickwl_pointerfocus restoration, and post-modeset HiDPI two-click + press-drag-release menu activation),check-dtwm-wayland-busy-light.py(Front PanelCONTROL BusyFplite/FpliteYblink activation and automatic clear on client map),check-dtwm-wayland-activation.py(xdg-activation-v1startup token minting, Front PanelBusyIPC sync, focus-stealing prevention during active typing, and cross-workspace token activation),check-dtwm-wayland-gpu-protocols.py(automatic GPU/pixmanrenderer selection and fallback,zwp_linux_dmabuf_v1v4 feedback,wp_presentationfeedback,wp_single_pixel_buffer_v1, andwp_alpha_modifier_v1blending),check-dtwm-wayland-protocols-v2.py(xdg-dialog-v1Motif modal centering, parent interior dimming, and click/focus locking,wp-tearing-control-v1ASYNCpage-flip commits, andwp-fifo-v1set_barrier/wait_barrierframe-pacing queues and protocol error guards),check-dtwm-wayland-drag-ime-scanout.py(xdg-toplevel-drag-v1live window and tab tear-off/re-attachment duringwl_data_devicedrag-and-drop without self-occlusion of drop targets underneath,zwp_input_popup_surface_v2global scene-coordinate CJK candidate popup anchoring on childwl_subsurfaces with bottom-edge flip and live titlebar-move re-anchoring, andxdg_toplevelborderless fullscreen with unoccluded direct KMS scanoutwlr_output_test_state+ popup-occlusion suppression),qualify-baremetal-3d-gpu.c(physical Broadcom V3D/dev/dri/renderD128bare-metal 3D GPU qualification recorded indocs/baremetal-3d-gpu-qualification.json, verifyingBT.2020 ST.2084 PQandHLGFBO shaders at0LSB error and multi-planeDRM_FORMAT_NV12DMA-BUFmodifier import +GL_OES_EGL_image_externalYUV→RGB CSC),check-xdg-desktop-portal-cde.py(nativelibXm.so.9xdg-desktop-portal-cdeend-to-end verification ofSettings,FileChooserOpenFile/SaveFile+Request.Close,AppChooser+ liveUpdateChoices,WallpaperXPM3 conversion +grimbackdrop pixel check,InhibitCreateMonitor+ compositor idle-suspend suppression,GlobalShortcuts<Control><Alt>gActivated/Deactivatedsignals, andRemoteDesktopMotif consent +restore_token+NotifyPointer*+ConnectToEISbinary EIS v1 wire-protocol clicks),check-dtwm-wayland-hdr-dtstyle.py(dtstyle -monitorsper-monitor Color Profile picker +~/.dt/display_ergonomics.confpersistence + GLES2 shader and CPU LUT mixed SDR + HDR10BT.2020 PQper-surface tone mapping),check-dtwm-wayland-pointer-lock.py(zwp_pointer_constraints_v1lock and region confinement,zwp_relative_pointer_v1,zwp_keyboard_shortcuts_inhibit_v1,cursor_position_hintwarp,Ctrl+Altescape hatch, and click recapture),check-dtappintegrate-curated.py(Application Manager installed vs. auto-gray + blue download arrow badge vs. hidden stub curation), andcheck-dtwm-wayland-exit-session.py(f.quit_mwm, external-compositordtsession --waylandlogout, degraded/standaloneXSession_Exitfallback, nativeSIGTERMand restart, and activation environment export) run automatically undermake check. Native session startup publishes the active Wayland socket, toolkit backend, icon paths, and datatype search path after the session process re-executes. Activated clients receive the same lookup paths as clients launched directly by the session. In a hybrid logout with an external compositor, dtsession finishes session cleanup before sending the quit request on Xwayland. It retains the completed logout status if Xwayland closes during that final round trip.
- Native Wayland Help Viewer (
dthelpview) & Information Manager (dtinfo):dtwm-wayland --no-xwaylandexportsWAYLAND_DISPLAYbefore launching the sessionttsession -pdaemon and publishes_SUN_TT_SESSION/TT_SESSIONasXA_STRINGonto eachlibXm.so.9virtual root window so Front Panel ToolTalk actions (CONTROL InfoManager→DtLoadInfoLib→dtinfo_start→dtinfo, plus the Information subpanel'sdthelpviewlaunchers) open directly without XWayland.libDtHelp(_DtHelpXmFontListGetPropertyMax,__DtHelpFontDatabaseInit) natively supportsXmFONT_IS_XFTrender-table entries alongside core XLFD fonts,dtinforesolves Motif/CDE cursor bitmaps with standard cursor fallbacks and null-safe inline graphic type detection, andlibXm'sfont_bucketsXLFD cache keeps large interactive window resizes responsive across dense help topics and book chapters. - Signed Ubuntu LTS
.deband APT repository qualification (WP-08):scripts/build-ubuntu-debs.py --verify-installpackagesck-core-motif9,ck-core-fs-lib,ck-core-cde,ck-core-dtlogin, andck-core-appsinto a GPG-signed APT repository (Release.gpg,InRelease,ck-core-archive-keyring.asc), installs them via[signed-by=/etc/apt/keyrings/ck-core-archive-keyring.asc]alongside Ubuntu's systemlibxm4, boots both the installedCDE (Wayland)andCDE (X11 / XLibre)desktops withoutLD_LIBRARY_PATH, verifies/proc/<pid>/mapsagainst/usr/dt/lib/libXm.so.9, and captures full-desktop verification screenshots via/usr/bin/ck-grab.
CK Core CDE