wl_seat: add additional getters
This commit is contained in:
parent
60e9a33a57
commit
1f42bfde3c
2 changed files with 30 additions and 0 deletions
|
|
@ -198,6 +198,11 @@ impl CursorUserGroup {
|
|||
}
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn cursor_size(&self) -> u32 {
|
||||
self.size.get()
|
||||
}
|
||||
|
||||
fn output_center(&self, output: &Rc<OutputNode>) -> (Fixed, Fixed) {
|
||||
let pos = output.global.pos.get();
|
||||
let x = Fixed::from_int((pos.x1() + pos.x2()) / 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue