dtwm: icons in the 4Dwm look (image + label, tight column at the left)

Konrad, 2026-11-15: the icons of iconified windows should look like 4Dwm's.
Dtwm.defs.src now has iconDecoration "label image", iconImageMaximum 85x67
and iconPlacement "top left tight"; iconBoxSBDisplayPolicy is "vertical" so
an icon box does not turn the column back into a row.

The first token of iconPlacement is the primary direction in
WmCvtStringToIPlace/CvtIconPlaceToPosition: "top" fills a column downward,
"left" would fill a row (measured: "left top" produced a row at the top,
"top left tight" a column at the left edge).  The "tight" token gives the
2 pixel margins of ICON_PLACE_TIGHT.

Measured in Xvfb (1280x800, fresh HOME, ttsession + dtwm): three xterms
iconified -> pictures 85x67 with the label under each, at the left edge,
one under the other (screenshot before: a row along the top).  The
app-defaults file is read (appres Dtwm with XFILESEARCHPATH of the
development installation shows the three resources).
This commit is contained in:
lotherk committed 2026-11-15 22:18:15 +00:00
1 parent c93bcb9564
commit 00150352c6
2 files changed
+18 -4

No files matched your search

+7 -2
View File
@@ -112,8 +112,13 @@ narratives and test notes, is `docs/reference/mcde-agents-history-2026-11-13.txt
`~/.dt/Trash` and the Trash Can window lists it.
- **Windows**: dtwm places and maximizes below the bar; focus follows the
pointer without auto-raise by default; zones and full screen use Command+Ctrl
keys; the outline is XOR or four thin windows, never FlashOutline. The main
display carries bar and front panel, the others the backdrop only;
keys; the outline is XOR or four thin windows, never FlashOutline. An
iconified window shows image and label (`Dtwm*iconDecoration: label image`,
85x67 pictures) and the icons fill a tight column at the left edge
(`iconPlacement: top left tight` -- the first token is the primary direction;
`iconBoxSBDisplayPolicy: vertical` keeps the icon box from overriding it),
Konrad's 4Dwm look of 2026-11-15. The main display carries bar and front
panel, the others the backdrop only;
workspaces are shared; MCDE remembers a monitor (EDID) in `~/.dt/displays`.
F9/F10 open the window overview (`WmMcdeOverview.c`): an override-redirect
window with a grid of tiles, one per window, ordered by the windows' places,
+11 -2
View File
@@ -236,7 +236,14 @@ Dtwm*icon*fontList: \
!# corner of the screen.
!#
!####
Dtwm*iconPlacement: Top Left
!# MCDE: the 4Dwm icon look (Konrad, 2026-11-15): the label under the picture
!# on the icon, a small picture box, and the icons stacked at the left edge
!# from the top instead of a row along the top.
Dtwm*iconDecoration: label image
Dtwm*iconImageMaximum: 85x67
!# the first token is the primary direction: top -> a column, filled downward
!# (left top would fill a row: WmCvtStringToIPlace); tight = 2 pixel margins
Dtwm*iconPlacement: top left tight
!####
!#
@@ -244,7 +251,9 @@ Dtwm*iconPlacement: Top Left
!#
!####
Dtwm*iconBoxGeometry: 1x4+16+20
Dtwm*iconBoxSBDisplayPolicy: horizontal
!# MCDE: vertical, so iconPlacement "left top" is not overridden and the icons
!# stack at the left edge from the top (4Dwm look, Konrad 2026-11-15)
Dtwm*iconBoxSBDisplayPolicy: vertical
!####
!#