tree: allow floats to be pinned
This commit is contained in:
parent
3e6640f0ca
commit
65a66c2e26
28 changed files with 528 additions and 36 deletions
|
|
@ -1119,6 +1119,20 @@ impl WlSeatGlobal {
|
|||
};
|
||||
kb.phy_state.destroy(self.state.now_usec(), self);
|
||||
}
|
||||
|
||||
pub fn pinned(&self) -> bool {
|
||||
let Some(tl) = self.keyboard_node.get().node_toplevel() else {
|
||||
return false;
|
||||
};
|
||||
tl.tl_pinned()
|
||||
}
|
||||
|
||||
pub fn set_pinned(&self, pinned: bool) {
|
||||
let Some(tl) = self.keyboard_node.get().node_toplevel() else {
|
||||
return;
|
||||
};
|
||||
tl.tl_set_pinned(true, pinned);
|
||||
}
|
||||
}
|
||||
|
||||
impl CursorUserOwner for WlSeatGlobal {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue