1
0
Fork 0
forked from wry/wry

tree: implement pointer constraints

This commit is contained in:
Julian Orth 2022-07-21 20:16:22 +02:00
parent d4c4497043
commit 38d1267ec9
19 changed files with 707 additions and 4 deletions

View file

@ -297,6 +297,10 @@ impl Client {
axis
}
pub fn disable_pointer_constraint(&self, seat: Seat) {
self.send(&ClientMessage::DisablePointerConstraint { seat });
}
pub fn set_fullscreen(&self, seat: Seat, fullscreen: bool) {
self.send(&ClientMessage::SetFullscreen { seat, fullscreen });
}

View file

@ -304,6 +304,9 @@ pub enum ClientMessage<'a> {
seat: Seat,
use_hardware_cursor: bool,
},
DisablePointerConstraint {
seat: Seat,
},
}
#[derive(Encode, Decode, Debug)]