Update smithay, with xwayland shell, Cow, etc.
This commit is contained in:
parent
dfb3bea595
commit
4f076e0753
32 changed files with 220 additions and 87 deletions
|
|
@ -23,7 +23,7 @@ use smithay::{
|
|||
},
|
||||
touch::{
|
||||
DownEvent, GrabStartData as TouchGrabStartData, MotionEvent as TouchMotionEvent,
|
||||
TouchGrab, TouchInnerHandle, UpEvent,
|
||||
OrientationEvent, ShapeEvent, TouchGrab, TouchInnerHandle, UpEvent,
|
||||
},
|
||||
Seat,
|
||||
},
|
||||
|
|
@ -328,6 +328,26 @@ impl TouchGrab<State> for ResizeSurfaceGrab {
|
|||
handle.unset_grab(self, data);
|
||||
}
|
||||
|
||||
fn shape(
|
||||
&mut self,
|
||||
data: &mut State,
|
||||
handle: &mut TouchInnerHandle<'_, State>,
|
||||
event: &ShapeEvent,
|
||||
seq: Serial,
|
||||
) {
|
||||
handle.shape(data, event, seq)
|
||||
}
|
||||
|
||||
fn orientation(
|
||||
&mut self,
|
||||
data: &mut State,
|
||||
handle: &mut TouchInnerHandle<'_, State>,
|
||||
event: &OrientationEvent,
|
||||
seq: Serial,
|
||||
) {
|
||||
handle.orientation(data, event, seq)
|
||||
}
|
||||
|
||||
fn start_data(&self) -> &TouchGrabStartData<State> {
|
||||
match &self.start_data {
|
||||
GrabStartData::Touch(start_data) => start_data,
|
||||
|
|
|
|||
|
|
@ -1132,7 +1132,7 @@ impl FloatingLayout {
|
|||
};
|
||||
self.space
|
||||
.elements()
|
||||
.find(|elem| elem.wl_surface().as_ref() == Some(&toplevel_surface))
|
||||
.find(|elem| elem.wl_surface().as_deref() == Some(&toplevel_surface))
|
||||
}
|
||||
KeyboardFocusTarget::Element(elem) => self.space.elements().find(|x| *x == &elem),
|
||||
_ => None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue