shell: Handle fullscreen surfaces

This commit is contained in:
Victoria Brekenfeld 2022-04-22 15:18:28 +02:00
parent 0e42f34065
commit f1f51e1714
7 changed files with 411 additions and 91 deletions

View file

@ -529,6 +529,9 @@ impl TilingLayout {
if let Some(geo) = geo {
#[allow(irrefutable_let_patterns)]
if let Kind::Xdg(xdg) = &window.toplevel() {
if xdg.current_state().map(|state| state.states.contains(XdgState::Fullscreen)).unwrap_or(false) {
continue;
}
let ret = xdg.with_pending_state(|state| {
state.size = Some(
(geo.size.w - inner * 2, geo.size.h - inner * 2)