Panel hover events for modules; spawned apps get default SIGCHLD and keep the real bus for flatpak
CI / test (push) Failing after 16s
CI / test (push) Failing after 16s
- shell: the module under the pointer gets PointerMove, the one it left gets PointerLeave (hover feedback, e.g. the dock's magnifying tiles) - sys: reset SIGCHLD to SIG_DFL in the child before exec (SIG_IGN is inherited and breaks apps that wait() on helpers, e.g. terminals); flatpak run keeps the real session bus - inspector: drop the redundant 'scroll for more' hint next to the scrollbar Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95a21a0b84
commit
f05677178a
3 files changed
+25
-2
No files matched your search
@@ -348,7 +348,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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user