Update smithay
Updates for changes in https://github.com/Smithay/smithay/pull/1391.
This commit is contained in:
parent
5d5a510691
commit
17ddc7ce24
9 changed files with 27 additions and 25 deletions
|
|
@ -144,7 +144,7 @@ impl PointerGrab<State> for ResizeSurfaceGrab {
|
|||
handle.motion(data, None, event);
|
||||
|
||||
if self.update_location(event.location) {
|
||||
handle.unset_grab(data, event.serial, event.time, true);
|
||||
handle.unset_grab(self, data, event.serial, event.time, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -169,12 +169,12 @@ impl PointerGrab<State> for ResizeSurfaceGrab {
|
|||
match self.release {
|
||||
ReleaseMode::NoMouseButtons => {
|
||||
if handle.current_pressed().is_empty() {
|
||||
handle.unset_grab(data, event.serial, event.time, true);
|
||||
handle.unset_grab(self, data, event.serial, event.time, true);
|
||||
}
|
||||
}
|
||||
ReleaseMode::Click => {
|
||||
if event.state == ButtonState::Pressed {
|
||||
handle.unset_grab(data, event.serial, event.time, true);
|
||||
handle.unset_grab(self, data, event.serial, event.time, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -297,7 +297,7 @@ impl TouchGrab<State> for ResizeSurfaceGrab {
|
|||
seq: Serial,
|
||||
) {
|
||||
if event.slot == <Self as TouchGrab<State>>::start_data(self).slot {
|
||||
handle.unset_grab(data);
|
||||
handle.unset_grab(self, data);
|
||||
}
|
||||
|
||||
handle.up(data, event, seq);
|
||||
|
|
@ -313,7 +313,7 @@ impl TouchGrab<State> for ResizeSurfaceGrab {
|
|||
) {
|
||||
if event.slot == <Self as TouchGrab<State>>::start_data(self).slot {
|
||||
if self.update_location(event.location) {
|
||||
handle.unset_grab(data);
|
||||
handle.unset_grab(self, data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -325,7 +325,7 @@ impl TouchGrab<State> for ResizeSurfaceGrab {
|
|||
}
|
||||
|
||||
fn cancel(&mut self, data: &mut State, handle: &mut TouchInnerHandle<'_, State>, _seq: Serial) {
|
||||
handle.unset_grab(data);
|
||||
handle.unset_grab(self, data);
|
||||
}
|
||||
|
||||
fn start_data(&self) -> &TouchGrabStartData<State> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue