Merge commits a9417fbccf
CI / test (push) Failing after 28s

This commit is contained in:
nandi committed 2026-11-25 01:04:11 -08:00
commit 69a1a0738c
22 files changed
+939 -34

No files matched your search

+7 -1
View File
@@ -31,6 +31,13 @@ let components : Array[Component] = [
world: Some(("wit/worlds.wit", "shell")),
ifaces: [],
},
{
id: "desktop-widget",
title: "Desktop widget",
note: "draggable card on the wallpaper (time, date, moon phase), drawn below all windows from the clock, timefmt and moon renderers",
world: None,
ifaces: [],
},
{
id: "window-decoration",
title: "Window decoration",
@@ -348,7 +355,6 @@ fn DesktopShell::render_inspector(
let ty = 52 + (th - thumb) * first / max_scroll
local.push(@ui.fill_rect(@ui.rect(dw - 8, 52, 3, th), p.border))
local.push(@ui.fill_rect(@ui.rect(dw - 8, ty, 3, thumb), p.accent))
local.push(@ui.text(dw - 24 - 90, 34, "scroll for more", 11, p.foreground_muted))
}
let scene_ops : Array[@scene.DrawOp] = []
translate(local, dx, dy, scene_ops)
+20
View File
@@ -682,6 +682,26 @@ pub fn DesktopShell::pointer_move(self : DesktopShell, x : Int, y : Int) -> Bool
Some(w) => ignore(self.deliver(w, false, PointerMove(x - w.rect.x, y - w.rect.y)))
None => ()
}
// Hover: the widget under the pointer sees moves, the one it left sees a leave.
let hovered = match self.widget_at(x, y) {
Some(w) if !self.popup_covers(x, y) => Some(w)
_ => None
}
let hslot = match hovered {
Some(w) => w.slot
None => ""
}
if hslot != self.hover_slot {
match self.widget_by_slot(self.hover_slot) {
Some(old) => ignore(self.deliver(old, false, PointerLeave))
None => ()
}
self.hover_slot = hslot
}
match hovered {
Some(w) => ignore(self.deliver(w, false, PointerMove(x - w.rect.x, y - w.rect.y)))
None => ()
}
let mut over = false
for w in self.widgets.copy() {
if w.popup_rect.w > 0 {