Update resize commit unconditionally
Browse files at this commit719270854a2b3638b24ea7bf0ad702e1fb3fa9acParent: 89009601 changed file +11 -11
- src/layout/workspace.rs +11 -11
src/layout/workspace.rsmodified+11 -11
| @@ -1184,21 +1184,21 @@ impl<W: LayoutElement> Workspace<W> { | |||
| 1184 | } | 1184 | } |
| 1185 | } | 1185 | } |
| 1186 | 1186 | ||
| 1187 | - if col_idx == self.active_column_idx { | 1187 | + let col = &mut self.columns[col_idx]; |
| 1188 | - let col = &mut self.columns[col_idx]; | 1188 | + let tile = &mut col.tiles[tile_idx]; |
| 1189 | - let tile = &mut col.tiles[tile_idx]; | 1189 | + let window = tile.window_mut(); |
| 1190 | - let window = tile.window_mut(); | ||
| 1191 | 1190 | ||
| 1192 | - let resize = window.interactive_resize_data(); | 1191 | + let resize = window.interactive_resize_data(); |
| 1193 | 1192 | ||
| 1194 | - if let Some(serial) = serial { | 1193 | + if let Some(serial) = serial { |
| 1195 | - window.update_interactive_resize(serial); | 1194 | + window.update_interactive_resize(serial); |
| 1196 | - } | 1195 | + } |
| 1197 | 1196 | ||
| 1198 | - // If this was the last resize commit, this function will now return None. This way we | 1197 | + // If this was the last resize commit, this function will now return None. This way we can |
| 1199 | - // can animate the window into view after the last resize commit. | 1198 | + // animate the window into view after the last resize commit. |
| 1200 | - let resize_still_ongoing = window.interactive_resize_data().is_some(); | 1199 | + let resize_still_ongoing = window.interactive_resize_data().is_some(); |
| 1201 | 1200 | ||
| 1201 | + if col_idx == self.active_column_idx { | ||
| 1202 | if let Some(resize) = resize { | 1202 | if let Some(resize) = resize { |
| 1203 | // If this is an interactive resize commit of an active window, then we need to | 1203 | // If this is an interactive resize commit of an active window, then we need to |
| 1204 | // either preserve the view offset or adjust it accordingly. | 1204 | // either preserve the view offset or adjust it accordingly. |