Update Smithay, adjusting for API changes

The main changes are those related to pointer gestures. Which are a bit
verbose but not too difficult.
This commit is contained in:
Ian Douglas Scott 2023-09-05 10:55:23 -07:00
parent 1392fc7c95
commit e7e9b768c8
15 changed files with 1151 additions and 119 deletions

View file

@ -44,7 +44,12 @@ use smithay::{
desktop::space::{RenderZindex, SpaceElement},
input::{
keyboard::{KeyboardTarget, KeysymHandle, ModifiersState},
pointer::{AxisFrame, ButtonEvent, MotionEvent, PointerTarget, RelativeMotionEvent},
pointer::{
AxisFrame, ButtonEvent, GestureHoldBeginEvent, GestureHoldEndEvent,
GesturePinchBeginEvent, GesturePinchEndEvent, GesturePinchUpdateEvent,
GestureSwipeBeginEvent, GestureSwipeEndEvent, GestureSwipeUpdateEvent, MotionEvent,
PointerTarget, RelativeMotionEvent,
},
Seat,
},
output::Output,
@ -461,6 +466,63 @@ impl<P: Program + Send + 'static> PointerTarget<crate::state::State> for IcedEle
.queue_event(Event::Mouse(MouseEvent::CursorLeft));
let _ = internal.update(true);
}
fn gesture_swipe_begin(
&self,
_: &Seat<crate::state::State>,
_: &mut crate::state::State,
_: &GestureSwipeBeginEvent,
) {
}
fn gesture_swipe_update(
&self,
_: &Seat<crate::state::State>,
_: &mut crate::state::State,
_: &GestureSwipeUpdateEvent,
) {
}
fn gesture_swipe_end(
&self,
_: &Seat<crate::state::State>,
_: &mut crate::state::State,
_: &GestureSwipeEndEvent,
) {
}
fn gesture_pinch_begin(
&self,
_: &Seat<crate::state::State>,
_: &mut crate::state::State,
_: &GesturePinchBeginEvent,
) {
}
fn gesture_pinch_update(
&self,
_: &Seat<crate::state::State>,
_: &mut crate::state::State,
_: &GesturePinchUpdateEvent,
) {
}
fn gesture_pinch_end(
&self,
_: &Seat<crate::state::State>,
_: &mut crate::state::State,
_: &GesturePinchEndEvent,
) {
}
fn gesture_hold_begin(
&self,
_: &Seat<crate::state::State>,
_: &mut crate::state::State,
_: &GestureHoldBeginEvent,
) {
}
fn gesture_hold_end(
&self,
_: &Seat<crate::state::State>,
_: &mut crate::state::State,
_: &GestureHoldEndEvent,
) {
}
}
impl<P: Program + Send + 'static> KeyboardTarget<crate::state::State> for IcedElement<P> {