tree: implement pointer constraints
This commit is contained in:
parent
d4c4497043
commit
38d1267ec9
19 changed files with 707 additions and 4 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -304,6 +304,9 @@ pub enum ClientMessage<'a> {
|
|||
seat: Seat,
|
||||
use_hardware_cursor: bool,
|
||||
},
|
||||
DisablePointerConstraint {
|
||||
seat: Seat,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Encode, Decode, Debug)]
|
||||
|
|
|
|||
|
|
@ -278,6 +278,11 @@ impl Seat {
|
|||
pub fn set_fullscreen(self, fullscreen: bool) {
|
||||
get!().set_fullscreen(self, fullscreen)
|
||||
}
|
||||
|
||||
/// Disables the currently active pointer constraint on this seat.
|
||||
pub fn disable_pointer_constraint(self) {
|
||||
get!().disable_pointer_constraint(self)
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns all seats.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue