Files
mcde/programs
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
..