shell: Handle fullscreen surfaces
This commit is contained in:
parent
0e42f34065
commit
f1f51e1714
7 changed files with 411 additions and 91 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue