mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
Use remove/insert for columns instead of swapping
Now with move-to-first/last this is relevant.
This commit is contained in:
@@ -652,7 +652,8 @@ impl<W: LayoutElement> Workspace<W> {
|
||||
|
||||
let current_x = self.view_pos();
|
||||
|
||||
self.columns.swap(self.active_column_idx, new_idx);
|
||||
let column = self.columns.remove(self.active_column_idx);
|
||||
self.columns.insert(new_idx, column);
|
||||
|
||||
self.view_offset =
|
||||
self.compute_new_view_offset_for_column(current_x, self.active_column_idx);
|
||||
|
||||
Reference in New Issue
Block a user