mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
layout: Fix workspace swipe to same workspace forgetting previous id
This manifested much more prominently in the overview.
This commit is contained in:
@@ -1820,7 +1820,9 @@ impl<W: LayoutElement> Monitor<W> {
|
||||
|
||||
velocity *= rubber_band.clamp_derivative(min, max, gesture.start_idx + current_pos);
|
||||
|
||||
self.previous_workspace_id = Some(self.workspaces[self.active_workspace_idx].id());
|
||||
if self.active_workspace_idx != new_idx {
|
||||
self.previous_workspace_id = Some(self.workspaces[self.active_workspace_idx].id());
|
||||
}
|
||||
|
||||
self.active_workspace_idx = new_idx;
|
||||
self.workspace_switch = Some(WorkspaceSwitch::Animation(Animation::new(
|
||||
|
||||
Reference in New Issue
Block a user