Files
RedBear-OS/local
vasilito 7b973f932b redbear-power: v1.36 mouse click to position Process cursor
Extends the existing mouse handler (which already supports
Per-CPU wheel/left/right/middle clicks) to also work on the
Process tab.

- Wheel up/down on the Process tab: cursor moves 1 row
  (process_cursor is set via the existing move_selection
  dispatcher, which is already tab-aware)
- Left click on a row: process_cursor jumps to that row.
  The Process tab has 2 lines of header (title + blank) and
  1 line of column header, so rows start at body.y + 2.
  Click in the body's empty space (below the rows) is a no-op
  (saturating_sub clamps to 0).
- Right click on a row: positions the cursor AND opens the
  PID detail popup (right-click is the natural 'inspect' gesture).
- The body rect for the Process tab is the same as 'table'
  in the existing handler since the Process tab uses the
  full body area (not split into header + table like Per-CPU).

Test count 127 (unchanged; mouse handling is TUI-time and
hard to unit-test without a full terminal harness).

Redox stripped binary: 4,250,472 bytes (+12 KiB from v1.35;
the new branches are inline in the existing handler).
Compile warnings: 56 (unchanged).
2026-06-21 07:37:08 +03:00
..