Implement pointer constraints; update to send frame manually
This commit is contained in:
parent
0b057f153e
commit
373af07319
16 changed files with 272 additions and 49 deletions
|
|
@ -152,6 +152,13 @@ impl PointerGrab<State> for ResizeGrab {
|
|||
}
|
||||
}
|
||||
|
||||
fn frame(&mut self, data: &mut State, handle: &mut PointerInnerHandle<'_, State>) {
|
||||
match self {
|
||||
ResizeGrab::Floating(grab) => grab.frame(data, handle),
|
||||
ResizeGrab::Tiling(grab) => grab.frame(data, handle),
|
||||
}
|
||||
}
|
||||
|
||||
fn gesture_swipe_begin(
|
||||
&mut self,
|
||||
data: &mut State,
|
||||
|
|
|
|||
|
|
@ -311,6 +311,10 @@ impl PointerGrab<State> for MoveGrab {
|
|||
handle.axis(state, details);
|
||||
}
|
||||
|
||||
fn frame(&mut self, data: &mut State, handle: &mut PointerInnerHandle<'_, State>) {
|
||||
handle.frame(data)
|
||||
}
|
||||
|
||||
fn gesture_swipe_begin(
|
||||
&mut self,
|
||||
data: &mut State,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue