Task manager panel module and Alt+Tab window switcher
CI / test (push) Failing after 18s

- components/tasks: the 'tasks' module the panel and components.txt already named but whose source
  was missing. One pill per window in opening order (stable, not stacking order), focused lit,
  minimized dimmed, hover, titles shortened, pills shrink to fit; click focuses/restores.
  Tests that loaded it (task list, title-bar minimize/restore) pass again.
- compositor/host/switcher.mbt: hold Alt, press Tab: most-recently-used window list with the
  previous window selected; Tab/Shift+Tab/arrows move, releasing Alt switches (restoring a
  minimized window), Escape cancels. Tab is not forwarded to clients.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-25 03:39:19 -08:00
1 parent 095bbc5906
commit 70ad87f2d2
18 files changed
+1094 -3

No files matched your search

+15 -1
View File
@@ -53,6 +53,11 @@ pub(all) struct MoonPlasmaCompositor {
mut layout_mode : @wm.LayoutMode
/// Set when the user asked to end the session (the logout button); the main loop then exits.
mut quit_requested : Bool
/// Alt+Tab switcher (switcher.mbt): whether it is up, its window list (most recent first) and selection.
mut switcher_on : Bool
mut switcher : Array[UInt64]
mut switcher_sel : Int
mut alt_down : Bool
/// Milliseconds spent so far in the shell (panel modules) and in the rasteriser, for --profile.
/// The last composed frame and what it was made from: an unchanged desktop is not redrawn.
mut last_frame : @renderer.Pixmap?
@@ -110,6 +115,10 @@ pub fn MoonPlasmaCompositor::new(
super_solo: false,
layout_mode: @wm.LayoutMode::Tiling,
quit_requested: false,
switcher_on: false,
switcher: [],
switcher_sel: 0,
alt_down: false,
last_frame: None,
last_sig: None,
frame_changed: true,
@@ -457,6 +466,9 @@ pub fn MoonPlasmaCompositor::compose_frame(
self.shell.win_list = entries
let t0 = @sys.monotonic_ms()
let (bg_ops, panel_ops) = self.shell.render(self.output_w, self.output_h, self.theme)
if self.switcher_on {
panel_ops.append(self.switcher_ops())
}
self.run_shell_actions()
scene.background_ops = bg_ops
scene.panel_ops = panel_ops
@@ -1128,7 +1140,9 @@ pub fn MoonPlasmaCompositor::handle_input(
}
}
Key(code, pressed) =>
if code == 125U || code == 126U {
if self.switcher_key(code, pressed, time_ms) {
self.super_solo = false
} else if code == 125U || code == 126U {
// Super (left/right): a bare tap toggles the launcher search; never reaches clients.
if pressed {
self.super_solo = true