mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
Update resize commit unconditionally
This commit is contained in:
@@ -1184,7 +1184,6 @@ impl<W: LayoutElement> Workspace<W> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if col_idx == self.active_column_idx {
|
|
||||||
let col = &mut self.columns[col_idx];
|
let col = &mut self.columns[col_idx];
|
||||||
let tile = &mut col.tiles[tile_idx];
|
let tile = &mut col.tiles[tile_idx];
|
||||||
let window = tile.window_mut();
|
let window = tile.window_mut();
|
||||||
@@ -1195,10 +1194,11 @@ impl<W: LayoutElement> Workspace<W> {
|
|||||||
window.update_interactive_resize(serial);
|
window.update_interactive_resize(serial);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If this was the last resize commit, this function will now return None. This way we
|
// If this was the last resize commit, this function will now return None. This way we can
|
||||||
// can animate the window into view after the last resize commit.
|
// animate the window into view after the last resize commit.
|
||||||
let resize_still_ongoing = window.interactive_resize_data().is_some();
|
let resize_still_ongoing = window.interactive_resize_data().is_some();
|
||||||
|
|
||||||
|
if col_idx == self.active_column_idx {
|
||||||
if let Some(resize) = resize {
|
if let Some(resize) = resize {
|
||||||
// If this is an interactive resize commit of an active window, then we need to
|
// If this is an interactive resize commit of an active window, then we need to
|
||||||
// either preserve the view offset or adjust it accordingly.
|
// either preserve the view offset or adjust it accordingly.
|
||||||
|
|||||||
Reference in New Issue
Block a user