From b8995a12d1191053628c0df7b986435e156fb79c Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 2 Sep 2025 17:20:41 +0300 Subject: 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. --- src/tests/fullscreen.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tests') 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"); } -- cgit