diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-09-02 17:20:41 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-09-17 22:04:23 +0300 |
| commit | b8995a12d1191053628c0df7b986435e156fb79c (patch) | |
| tree | 12579e935930cdc3512d1e2ef48733c3dbf88660 /src/tests | |
| parent | 2f9832aa367e9038d3e1374cf61fe2235175b936 (diff) | |
| download | niri-b8995a12d1191053628c0df7b986435e156fb79c.tar.gz niri-b8995a12d1191053628c0df7b986435e156fb79c.tar.bz2 niri-b8995a12d1191053628c0df7b986435e156fb79c.zip | |
layout/scrolling: Store view_offset_before_fullscreen when column actually goes fullscreen
Simplifies the handling and correctly saves/restores view offset for clients
that are slow to fullscreen, as can be seen from the fixed test.
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/fullscreen.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/fullscreen.rs b/src/tests/fullscreen.rs index 68ed7aeb..f9391ce5 100644 --- a/src/tests/fullscreen.rs +++ b/src/tests/fullscreen.rs @@ -212,6 +212,5 @@ fn unfullscreen_before_fullscreen_ack_doesnt_prevent_view_offset_save_restore() f.niri_complete_animations(); // The view position should restore to the first window. - // FIXME: this currently doesn't work and sets the view position to the second window. - assert_snapshot!(f.niri().layout.active_workspace().unwrap().scrolling().view_pos(), @"100"); + assert_snapshot!(f.niri().layout.active_workspace().unwrap().scrolling().view_pos(), @"-16"); } |
