shell: Support maximize and fullscreen requests

This commit is contained in:
Victoria Brekenfeld 2022-10-24 18:32:53 +02:00
parent f59bb8a06e
commit bb07ab4155
5 changed files with 166 additions and 103 deletions

View file

@ -795,7 +795,7 @@ impl TilingLayout {
}
},
Data::Mapped { mapped, .. } => {
if !mapped.is_fullscreen() {
if !(mapped.is_fullscreen() || mapped.is_maximized()) {
mapped.set_tiled(true);
mapped.set_size(
(geo.size.w - inner * 2, geo.size.h - inner * 2).into(),