Files
chandra/lib/panel/pkg.generated.mbti
T
Claude f844ac66ff
CI / test (push) Failing after 16s
Task manager: right-click a window's pill for Minimize/Restore, Maximize, Quit
- Right-clicking a pill in the task manager opens that window's menu (titled with the window's
  title): Minimize (Restore when minimized), Maximize (Restore size when maximized) and Quit,
  which asks the app to close the window (xdg_toplevel close, like the title-bar close button).
  Empty task-bar space keeps the module's own menu (Module settings, Replace with, Remove widget).
- Modules only get left clicks, so the shell draws the menu and hit-tests the pills itself: the
  pill geometry moved to lib/panel/tasks.mbt, shared by the tasks module and the shell. No WIT
  change, so every host works as before.
- New menu row kind 6 and ShellAction::Window(id, WindowCommand); the compositor runs it through
  the same WM requests as the title-bar buttons. WinInfo carries `maximized`.
- Tests: native end-to-end (menu rows, minimize/restore, maximize/restore size, Quit sends close,
  empty space keeps the module menu) and lib/panel pill geometry tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hiX13fXK1eMboRe5oQ
2026-11-25 20:13:38 +00:00

50 lines
846 B
Plaintext

// Generated using `moon info`, DON'T EDIT IT
package "chandra/desktop/lib/panel"
// Values
pub fn layout(Int32, Int32, Int32, Int32, Int32, Array[SlotIn]) -> Result[PanelLayout, String]
pub fn popup_position(Int32, Int32, Int32, Int32, Int32, Int32) -> (Int32, Int32)
pub fn task_pill_at(Int32, Int32, Int32) -> Int32
pub let task_pill_gap : Int32
pub let task_pill_max : Int32
pub let task_pill_min : Int32
pub fn task_pill_w(Int32, Int32) -> Int32
// Errors
// Types and methods
pub(all) struct PanelLayout {
x : Int32
y : Int32
w : Int32
h : Int32
placements : Array[Placed]
}
pub(all) struct Placed {
id : String
x : Int32
y : Int32
w : Int32
h : Int32
}
pub(all) struct SlotIn {
id : String
pref_w : Int32
pref_h : Int32
min_w : Int32
stretch : Bool
end_align : Bool
}
// Type aliases
// Traits