shell: Don't animate programmatic maximize_requests
This commit is contained in:
parent
156f634944
commit
b793975689
4 changed files with 8 additions and 8 deletions
|
|
@ -2228,7 +2228,7 @@ impl Shell {
|
|||
}
|
||||
|
||||
if !should_be_fullscreen && should_be_maximized {
|
||||
self.maximize_request(&mapped, &seat);
|
||||
self.maximize_request(&mapped, &seat, false);
|
||||
}
|
||||
|
||||
let new_target = if (workspace_output == seat.active_output()
|
||||
|
|
@ -3248,7 +3248,7 @@ impl Shell {
|
|||
if window.is_fullscreen(true) {
|
||||
return;
|
||||
}
|
||||
self.maximize_request(window, seat);
|
||||
self.maximize_request(window, seat, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3319,7 +3319,7 @@ impl Shell {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn maximize_request(&mut self, mapped: &CosmicMapped, seat: &Seat<State>) {
|
||||
pub fn maximize_request(&mut self, mapped: &CosmicMapped, seat: &Seat<State>, animate: bool) {
|
||||
self.unminimize_request(mapped, seat);
|
||||
let (original_layer, floating_layer, original_geometry) = if let Some(set) = self
|
||||
.workspaces
|
||||
|
|
@ -3348,7 +3348,7 @@ impl Shell {
|
|||
original_layer,
|
||||
});
|
||||
std::mem::drop(state);
|
||||
floating_layer.map_maximized(mapped.clone(), original_geometry, true);
|
||||
floating_layer.map_maximized(mapped.clone(), original_geometry, animate);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3577,7 +3577,7 @@ impl Shell {
|
|||
|
||||
if was_maximized {
|
||||
if let Some(KeyboardFocusTarget::Element(mapped)) = res.as_ref() {
|
||||
self.maximize_request(mapped, seat);
|
||||
self.maximize_request(mapped, seat, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue