Files
mcde/programs/dtwm
lotherk 26c66b7444 dtwm: the program switcher stays while Command is held (t0115 follow-up)
Command+Tab raised and focused the next program at once, but the bar closed
by a five-second timer: holding Command longer made it vanish, and letting
Command go did not close it.  The bar now stays as long as Command is held:
dtwm grabs the keyboard while it is up (the Mod4 keycodes come from the
modifier map), KeyRelease of a Command key is looked at in WmMain before the
generic dispatch (McdeSwitcherEvent), and it hides and ungrabs at once.  A
long timer (60 s) only covers a grab that failed or a release that never
came; without the grab the old five-second flash stays.

Repeated Tab while held walks on, Shift+Command+Tab goes back; the chosen
program is raised and focused on every press (unchanged).  MCDE_SW_DEBUG=1
prints the grab and the key events.

Measured on an out-of-tree copy of the configured build (the tree's build
lock was held by another session's release/distfiles run): make dtwm linked
the changed sources, and under Xvfb :93 with two xterms
- keydown Super_L, Tab: the bar "MCDE Switcher" is IsViewable;
- after 7 s still held: IsViewable (the old code hid at 5 s);
- Tab again, keyup Super_L: IsUnMapped within 0.5 s, focus on the chosen
  xterm; the debug log shows the grab with keycodes 133 134 206 and the
  release of 133 closing it.

The official make mcde-linux and the install into /usr/mdt follow when the
build lock is free; the change touches only dtwm.  AGENTS.md describes the
behavior.
2026-11-16 18:57:06 +00:00
..

Conditional Compilation 
-----------------------

The following is a listing of the conditional compilation switches that
are "not obvious." Excluded are hardware or OS identifiers (e.g. __ultrix),
header file include flags, and macros (e.g. ABS).

    DEBUG
	Turns on code that prints out error messages (specifically
	protocol errors).

    DEBUGGER
	Turns on code to help debugging Help-on-item.

    DEBUG_ICON_BOX
	Turns on code that alters iconbox spacing to help debug iconbox.
	(?)

    DEBUG_RESOURCE_DATABASE
	Turns on code that dumps out dtwm's local resource database 
	to aid in debugging resource problems.

    DEBUG_SESSION_HINTS
	If defined, the session hints property is left on the root
	window after being read. Normally, it is deleted.

    ICCC_COMPLIANT
        This enables stricter ICCCM compliance. Specifically, some
	clients didn't get WM_PROTOCOLS quite right.

    INTEGRATION_TESTING_
	Swaps assignment of black and white on wait state cursor as
	a quick indicator of which client is showing the wait state.

    LARGECURSORS
	Allows cursors larger than 16x16.

    MESSAGE_CAT
	Enables message catalog code for local language support.

    MOTIF_DEFAULT_ICON
	Enables the default window icon with four buttons.

    OLD_CODE
	Vestigal code.

    R2_COMPAT
	Enables support for old clients that still pass window geometry
	hint information in WM_NORMAL_HINTS.

    UNMAP_ON_RESTART
	All windows are unmapped on restart.