Update to latest Smithay version
This commit is contained in:
parent
c91d3fe77b
commit
f2342f56c1
17 changed files with 228 additions and 123 deletions
|
|
@ -137,7 +137,7 @@ impl PointerGrab<State> for ResizeSurfaceGrab {
|
|||
&mut self,
|
||||
data: &mut State,
|
||||
handle: &mut PointerInnerHandle<'_, State>,
|
||||
_focus: Option<(PointerFocusTarget, Point<i32, Logical>)>,
|
||||
_focus: Option<(PointerFocusTarget, Point<f64, Logical>)>,
|
||||
event: &MotionEvent,
|
||||
) {
|
||||
// While the grab is active, no client has pointer focus
|
||||
|
|
@ -152,7 +152,7 @@ impl PointerGrab<State> for ResizeSurfaceGrab {
|
|||
&mut self,
|
||||
state: &mut State,
|
||||
handle: &mut PointerInnerHandle<'_, State>,
|
||||
_focus: Option<(PointerFocusTarget, Point<i32, Logical>)>,
|
||||
_focus: Option<(PointerFocusTarget, Point<f64, Logical>)>,
|
||||
event: &RelativeMotionEvent,
|
||||
) {
|
||||
// While the grab is active, no client has pointer focus
|
||||
|
|
@ -282,7 +282,7 @@ impl TouchGrab<State> for ResizeSurfaceGrab {
|
|||
&mut self,
|
||||
data: &mut State,
|
||||
handle: &mut TouchInnerHandle<'_, State>,
|
||||
_focus: Option<(PointerFocusTarget, Point<i32, Logical>)>,
|
||||
_focus: Option<(PointerFocusTarget, Point<f64, Logical>)>,
|
||||
event: &DownEvent,
|
||||
seq: Serial,
|
||||
) {
|
||||
|
|
@ -307,7 +307,7 @@ impl TouchGrab<State> for ResizeSurfaceGrab {
|
|||
&mut self,
|
||||
data: &mut State,
|
||||
handle: &mut TouchInnerHandle<'_, State>,
|
||||
_focus: Option<(PointerFocusTarget, Point<i32, Logical>)>,
|
||||
_focus: Option<(PointerFocusTarget, Point<f64, Logical>)>,
|
||||
event: &TouchMotionEvent,
|
||||
seq: Serial,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -730,7 +730,7 @@ impl FloatingLayout {
|
|||
pub fn surface_under(
|
||||
&mut self,
|
||||
location: Point<f64, Local>,
|
||||
) -> Option<(PointerFocusTarget, Point<i32, Local>)> {
|
||||
) -> Option<(PointerFocusTarget, Point<f64, Local>)> {
|
||||
let res = self
|
||||
.space
|
||||
.element_under(location.as_logical())
|
||||
|
|
@ -753,7 +753,7 @@ impl FloatingLayout {
|
|||
element
|
||||
.focus_under(point.as_logical())
|
||||
.map(|(surface, surface_offset)| {
|
||||
(surface, space_offset + surface_offset.as_local())
|
||||
(surface, space_offset.to_f64() + surface_offset.as_local())
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ impl PointerGrab<State> for ResizeForkGrab {
|
|||
&mut self,
|
||||
data: &mut State,
|
||||
handle: &mut PointerInnerHandle<'_, State>,
|
||||
_focus: Option<(PointerFocusTarget, Point<i32, Logical>)>,
|
||||
_focus: Option<(PointerFocusTarget, Point<f64, Logical>)>,
|
||||
event: &MotionEvent,
|
||||
) {
|
||||
// While the grab is active, no client has pointer focus
|
||||
|
|
@ -351,7 +351,7 @@ impl PointerGrab<State> for ResizeForkGrab {
|
|||
&mut self,
|
||||
state: &mut State,
|
||||
handle: &mut PointerInnerHandle<'_, State>,
|
||||
_focus: Option<(PointerFocusTarget, Point<i32, Logical>)>,
|
||||
_focus: Option<(PointerFocusTarget, Point<f64, Logical>)>,
|
||||
event: &RelativeMotionEvent,
|
||||
) {
|
||||
// While the grab is active, no client has pointer focus
|
||||
|
|
@ -479,7 +479,7 @@ impl TouchGrab<State> for ResizeForkGrab {
|
|||
&mut self,
|
||||
data: &mut State,
|
||||
handle: &mut TouchInnerHandle<'_, State>,
|
||||
_focus: Option<(PointerFocusTarget, Point<i32, Logical>)>,
|
||||
_focus: Option<(PointerFocusTarget, Point<f64, Logical>)>,
|
||||
event: &DownEvent,
|
||||
seq: Serial,
|
||||
) {
|
||||
|
|
@ -504,7 +504,7 @@ impl TouchGrab<State> for ResizeForkGrab {
|
|||
&mut self,
|
||||
data: &mut State,
|
||||
handle: &mut TouchInnerHandle<'_, State>,
|
||||
_focus: Option<(PointerFocusTarget, Point<i32, Logical>)>,
|
||||
_focus: Option<(PointerFocusTarget, Point<f64, Logical>)>,
|
||||
event: &TouchMotionEvent,
|
||||
seq: Serial,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -3101,7 +3101,7 @@ impl TilingLayout {
|
|||
&mut self,
|
||||
location_f64: Point<f64, Local>,
|
||||
overview: OverviewMode,
|
||||
) -> Option<(PointerFocusTarget, Point<i32, Local>)> {
|
||||
) -> Option<(PointerFocusTarget, Point<f64, Local>)> {
|
||||
let gaps = self.gaps();
|
||||
let last_overview_hover = &mut self.last_overview_hover;
|
||||
let placeholder_id = &self.placeholder_id;
|
||||
|
|
@ -3132,7 +3132,8 @@ impl TilingLayout {
|
|||
) {
|
||||
return Some((
|
||||
target,
|
||||
geo.loc - mapped.geometry().loc.as_local() + surface_offset.as_local(),
|
||||
geo.loc.to_f64() - mapped.geometry().loc.as_local().to_f64()
|
||||
+ surface_offset.as_local(),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
@ -3179,7 +3180,8 @@ impl TilingLayout {
|
|||
.map(|(surface, surface_offset)| {
|
||||
(
|
||||
surface,
|
||||
last_geometry.loc - mapped.geometry().loc.as_local()
|
||||
last_geometry.loc.to_f64()
|
||||
- mapped.geometry().loc.as_local().to_f64()
|
||||
+ surface_offset.as_local(),
|
||||
)
|
||||
})
|
||||
|
|
@ -3211,7 +3213,7 @@ impl TilingLayout {
|
|||
orientation,
|
||||
}
|
||||
.into(),
|
||||
last_geometry.loc
|
||||
(last_geometry.loc
|
||||
+ tree
|
||||
.children(&id)
|
||||
.unwrap()
|
||||
|
|
@ -3221,7 +3223,8 @@ impl TilingLayout {
|
|||
let geo = node.data().geometry();
|
||||
geo.loc + geo.size
|
||||
})
|
||||
.unwrap(),
|
||||
.unwrap())
|
||||
.to_f64(),
|
||||
))
|
||||
}
|
||||
_ => None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue