pointer-constraints: implement cursor position hint
This commit is contained in:
parent
90f791f772
commit
7405e04937
5 changed files with 34 additions and 7 deletions
|
|
@ -432,7 +432,7 @@ impl WlSeatGlobal {
|
|||
|
||||
pub fn disable_pointer_constraint(&self) {
|
||||
if let Some(constraint) = self.constraint.get() {
|
||||
constraint.deactivate();
|
||||
constraint.deactivate(true);
|
||||
if constraint.status.get() == SeatConstraintStatus::Inactive {
|
||||
constraint
|
||||
.status
|
||||
|
|
@ -465,6 +465,7 @@ impl WlSeatGlobal {
|
|||
return;
|
||||
}
|
||||
candidate.status.set(SeatConstraintStatus::Active);
|
||||
candidate.position_hint.take();
|
||||
if let Some(owner) = candidate.owner.get() {
|
||||
owner.send_enabled();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue