Files
mcde/programs/dtbar
lotherk b05823daf3 dtwm/dtbar: the focus leaves a client over an icon or the bar (t0255)
With focus-follows-pointer (sys.resources: Dtwm*keyboardFocusPolicy: pointer)
a move from a terminal straight onto a desktop icon or onto dtbar kept the
terminal as the keyboard focus: the icon windows did not select EnterNotify,
and McdeDesktopEvent returns True for every event of an icon, so the
workspace's root/backdrop enter path (HandleWsEnterNotify -> Do_Focus_Key
(NULL)) never ran.  The bar is a window of its own and dtwm does not focus
it, so hovering it changed nothing either.

- WmMcdeDesktop.c: the icon windows select EnterWindowMask, and their
  EnterNotify calls Do_Focus_Key(NULL, time, ALWAYS_SET_FOCUS) -- the focus
  goes to the pointer root and dtwm clears the active client.
- dtbar.c: the shell already had EnterWindowMask for the menu refresh; on a
  normal enter it now sets the input focus to PointerRoot unless the root or
  the bar already has it.  A menu's grab (NotifyGrab) is left alone, so
  keyboard menu handling is untouched.

Measured under Xvfb :89 (1024x768, pointer policy, Toronto backdrop, dtbar,
two xterms at +56+126 and +406+326):
- before: xterm A -> bar kept xterm A; xterm B -> Computer icon kept xterm B.
- after: A -> icon focus 1 (PointerRoot), B -> icon 1, A -> bar 1,
  B -> backdrop 1; hovering A or B again focuses that xterm; the front panel
  still takes the focus itself, and the client loses it (unchanged).
make mcde-linux MCDE_DIRS="install programs/dtwm programs/dtbar" exit=0;
"check programs/dtbar" 1 PASS, 0 FAIL; MCDE_DIRS=plist
"mcde-plist-check: ok".

AGENTS.md: the window/focus paragraph says what an icon or the bar now does.
2026-11-16 14:53:18 +00:00
..
2026-11-11 07:01:18 +00:00
2026-11-11 07:01:18 +00:00