diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-11 10:59:46 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-11 10:59:46 +0400 |
| commit | 719270854a2b3638b24ea7bf0ad702e1fb3fa9ac (patch) | |
| tree | bb7be9a8cd6213a444137f3911e0e7f2dba14295 /src | |
| parent | 8900960e76c058f178fb2004e6c6fc199410f7f7 (diff) | |
| download | niri-719270854a2b3638b24ea7bf0ad702e1fb3fa9ac.tar.gz niri-719270854a2b3638b24ea7bf0ad702e1fb3fa9ac.tar.bz2 niri-719270854a2b3638b24ea7bf0ad702e1fb3fa9ac.zip | |
Update resize commit unconditionally
Diffstat (limited to 'src')
| -rw-r--r-- | src/layout/workspace.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index b2d1d5a2..15de11dd 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1184,21 +1184,21 @@ impl<W: LayoutElement> Workspace<W> { } } - if col_idx == self.active_column_idx { - let col = &mut self.columns[col_idx]; - let tile = &mut col.tiles[tile_idx]; - let window = tile.window_mut(); + let col = &mut self.columns[col_idx]; + let tile = &mut col.tiles[tile_idx]; + let window = tile.window_mut(); - let resize = window.interactive_resize_data(); + let resize = window.interactive_resize_data(); - if let Some(serial) = serial { - window.update_interactive_resize(serial); - } + if let Some(serial) = serial { + window.update_interactive_resize(serial); + } - // If this was the last resize commit, this function will now return None. This way we - // can animate the window into view after the last resize commit. - let resize_still_ongoing = window.interactive_resize_data().is_some(); + // If this was the last resize commit, this function will now return None. This way we can + // animate the window into view after the last resize commit. + let resize_still_ongoing = window.interactive_resize_data().is_some(); + if col_idx == self.active_column_idx { if let Some(resize) = resize { // If this is an interactive resize commit of an active window, then we need to // either preserve the view offset or adjust it accordingly. |
