diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-16 10:48:54 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-16 10:48:54 +0400 |
| commit | 21ef5aded81309bc9ab57c15f4e92a438271a5ac (patch) | |
| tree | ba91f2aeadfc28b57057afad77a46ad5ea21a236 /src/layout/mod.rs | |
| parent | b28810286649cadeb5178d958a91d45f1ea462c0 (diff) | |
| download | niri-21ef5aded81309bc9ab57c15f4e92a438271a5ac.tar.gz niri-21ef5aded81309bc9ab57c15f4e92a438271a5ac.tar.bz2 niri-21ef5aded81309bc9ab57c15f4e92a438271a5ac.zip | |
Remove jumps on consume/expel animation start
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index d54867ac..5cd19267 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1426,7 +1426,9 @@ impl<W: LayoutElement> Layout<W> { let column = &ws.columns[ws.active_column_idx]; let width = column.width; let is_full_width = column.is_full_width; - let window = ws.remove_window_by_idx(ws.active_column_idx, column.active_tile_idx); + let window = ws + .remove_tile_by_idx(ws.active_column_idx, column.active_tile_idx) + .into_window(); let workspace_idx = monitors[new_idx].active_workspace_idx; self.add_window_by_idx(new_idx, workspace_idx, window, true, width, is_full_width); |
