shell: Handle maximize requests before commit

This commit is contained in:
Victoria Brekenfeld 2025-02-04 14:33:11 +01:00 committed by Victoria Brekenfeld
parent a3714b036e
commit 156f634944
5 changed files with 130 additions and 52 deletions

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
use crate::utils::prelude::*;
use crate::{shell::PendingLayer, utils::prelude::*};
use smithay::{
delegate_layer_shell,
desktop::{layer_map_for_output, LayerSurface, PopupKind, WindowSurfaceType},
@ -32,9 +32,11 @@ impl WlrLayerShellHandler for State {
.as_ref()
.and_then(Output::from_resource)
.unwrap_or_else(|| seat.active_output());
shell
.pending_layers
.push((LayerSurface::new(surface, namespace), output, seat));
shell.pending_layers.push(PendingLayer {
surface: LayerSurface::new(surface, namespace),
output,
seat,
});
}
fn new_popup(&mut self, _parent: WlrLayerSurface, popup: PopupSurface) {