diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-25 09:36:50 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-25 02:00:18 -0700 |
| commit | af1fca35bb15b8010cd3a12bbafe71b55d9ecf57 (patch) | |
| tree | 6283896fd931b9e5244a435cee9a0c227a850c23 /src/layout/tests.rs | |
| parent | 9571d149b2cecd3df8ba3f90f0af296e9f69af6e (diff) | |
| download | niri-af1fca35bb15b8010cd3a12bbafe71b55d9ecf57.tar.gz niri-af1fca35bb15b8010cd3a12bbafe71b55d9ecf57.tar.bz2 niri-af1fca35bb15b8010cd3a12bbafe71b55d9ecf57.zip | |
Implement an Overview
Diffstat (limited to 'src/layout/tests.rs')
| -rw-r--r-- | src/layout/tests.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/layout/tests.rs b/src/layout/tests.rs index af8ba284..bd845903 100644 --- a/src/layout/tests.rs +++ b/src/layout/tests.rs @@ -603,6 +603,13 @@ enum Op { WorkspaceSwitchGestureEnd { is_touchpad: Option<bool>, }, + OverviewGestureBegin, + OverviewGestureUpdate { + #[proptest(strategy = "-400f64..400f64")] + delta: f64, + timestamp: Duration, + }, + OverviewGestureEnd, InteractiveMoveBegin { #[proptest(strategy = "1..=5usize")] window: usize, @@ -658,6 +665,7 @@ enum Op { #[proptest(strategy = "1..=5usize")] window: usize, }, + ToggleOverview, } impl Op { @@ -1387,6 +1395,15 @@ impl Op { Op::WorkspaceSwitchGestureEnd { is_touchpad } => { layout.workspace_switch_gesture_end(is_touchpad); } + Op::OverviewGestureBegin => { + layout.overview_gesture_begin(); + } + Op::OverviewGestureUpdate { delta, timestamp } => { + layout.overview_gesture_update(delta, timestamp); + } + Op::OverviewGestureEnd => { + layout.overview_gesture_end(); + } Op::InteractiveMoveBegin { window, output_idx, @@ -1440,6 +1457,9 @@ impl Op { Op::InteractiveResizeEnd { window } => { layout.interactive_resize_end(&window); } + Op::ToggleOverview => { + layout.toggle_overview(); + } } } } |
