Dock and task manager are one module: titled window pills, pins, Super+1..9
CI / test (push) Failing after 30s

The panel had a task list and, beside it, a dock showing the same running
apps again. They are now one module, the dock, in the task list's place:

- Pinned apps, then running ones; an app with windows is a pill with its
  window's title (or name and window count) while there is room, an icon
  when the panel is crowded ("Show window titles" in Dock settings).
- Its right-click menu has the task list's window commands (Minimize /
  Restore, Maximize) for a single window, or the app's windows by title.
- It stretches like the task list did; new panels get it instead of
  tasks. A saved panel's "tasks" becomes the dock (one dock, where the
  task list was); pins are the dock's own setting, so they carry over.
- An empty dock shows a "+ Add apps" tile that opens the Applications
  menu, where right-clicking an app offers Open and Pin to dock (adding a
  dock to the panel if there is none).
- Super+1 .. Super+9 open the dock's first nine apps like a click
  (shortcut "dock-apps", rebindable in Settings > Shortcuts).
- "New window" / "Open" only for apps the catalog can start.

The tasks component, lib/panel's pill geometry and the taskbar-widget
world are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hiPCFHRxaJQvwex6ry
This commit is contained in:
Claude committed 2026-11-26 00:08:05 +00:00
1 parent 42aa770452
commit 6253371cb3
28 files changed
+801 -1131

No files matched your search

+26 -2
View File
@@ -84,9 +84,21 @@ fn ChandraCompositor::shortcut_key(self : ChandraCompositor, code : UInt, presse
if @shell.is_modifier_key(code) || self.shell.inspecting() {
return false
}
match self.shell.shortcuts.lookup({ mods: self.held_mods(), key: code }) {
let combo : @shell.KeyCombo = { mods: self.held_mods(), key: code }
match self.shell.shortcuts.lookup(combo) {
// Window switching is the switcher's (switcher_key runs before this).
None | Some(SwitchWindows) => false
Some(SwitchWindows) => false
// Super+2 .. Super+9 aren't in the table: they follow the "Open dock app" combo.
None | Some(DockApps) =>
match self.shell.shortcuts.dock_app(combo) {
Some(n) if self.open_dock_app(n) => {
self.sc_swallow.push(code)
self.super_solo = false
true
}
Some(_) => false
None => false
}
Some(action) => {
self.sc_swallow.push(code)
self.run_shortcut(action)
@@ -117,8 +129,20 @@ pub fn ChandraCompositor::run_shortcut(self : ChandraCompositor, action : @shell
RecordRegion => self.toggle_recording(ShotMode::Region)
RecordScreen => self.toggle_recording(ShotMode::FullScreen)
RecordWindow => self.toggle_recording(ShotMode::WindowUnderCursor)
DockApps => ignore(self.open_dock_app(1))
}
}
///| Super+`n`: the dock's `n`-th app, as if its icon were clicked. False when there is no dock
/// or no such app (the key then goes to the focused window as usual).
fn ChandraCompositor::open_dock_app(self : ChandraCompositor, n : Int) -> Bool {
if self.shell.inspecting() || !self.shell.open_dock_item(n) {
return false
}
self.run_shell_actions()
self.damage.mark_full()
true
}
///| evdev code of Backspace (unbinds while capturing).
let key_backspace : UInt = 14