1
0
Fork 0
forked from wry/wry

xdg-popup: implement jay-popup-ext-v1

This commit is contained in:
Julian Orth 2025-12-16 20:21:10 +01:00
parent 15e6ab2b8a
commit 1d3dfa8b3a
12 changed files with 473 additions and 8 deletions

View file

@ -103,6 +103,14 @@ impl NodeSeatState {
self.pointer_foci.remove(&seat.id);
}
pub fn pointer_inside(&self, seat: &WlSeatGlobal) -> bool {
self.pointer_foci.contains(&seat.id)
}
pub fn pointer_not_inside(&self, seat: &WlSeatGlobal) -> bool {
!self.pointer_inside(seat)
}
pub fn disable_focus_history(&self) {
self.no_focus_history.set(true);
}