mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Refactor request_fullscreen() to be an argument on request_size()
This commit is contained in:
+10
-2
@@ -3999,8 +3999,16 @@ impl<W: LayoutElement> Column<W> {
|
||||
|
||||
fn update_tile_sizes_with_transaction(&mut self, animate: bool, transaction: Transaction) {
|
||||
if self.is_fullscreen {
|
||||
for tile in &mut self.tiles {
|
||||
tile.request_fullscreen();
|
||||
for (tile_idx, tile) in self.tiles.iter_mut().enumerate() {
|
||||
// In tabbed mode, only the visible window participates in the transaction.
|
||||
let is_active = tile_idx == self.active_tile_idx;
|
||||
let transaction = if self.display_mode == ColumnDisplay::Tabbed && !is_active {
|
||||
None
|
||||
} else {
|
||||
Some(transaction.clone())
|
||||
};
|
||||
|
||||
tile.request_fullscreen(animate, transaction);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user