1
0
Fork 0
forked from wry/wry

wl_seat: add additional getters

This commit is contained in:
Julian Orth 2026-03-07 13:59:47 +01:00
parent 60e9a33a57
commit 1f42bfde3c
2 changed files with 30 additions and 0 deletions

View file

@ -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);