shell: empty (un)minimize handlers

This commit is contained in:
Victoria Brekenfeld 2024-02-08 20:28:59 +01:00 committed by Victoria Brekenfeld
parent 3c3a5f2ccf
commit 068b70d4bc
4 changed files with 43 additions and 0 deletions

View file

@ -162,6 +162,17 @@ impl XdgShellHandler for State {
Shell::resize_request(self, surface.wl_surface(), &seat, serial, edges.into())
}
fn minimize_request(&mut self, surface: ToplevelSurface) {
if let Some(mapped) = self
.common
.shell
.element_for_wl_surface(surface.wl_surface())
.cloned()
{
self.common.shell.minimize_request(&mapped)
}
}
fn maximize_request(&mut self, surface: ToplevelSurface) {
if let Some(mapped) = self
.common