1
0
Fork 0
forked from wry/wry

window-management: prevent dragging the root container

This commit is contained in:
Julian Orth 2026-01-16 14:16:22 +01:00
parent f16a95beeb
commit bcf2c8231d
2 changed files with 14 additions and 0 deletions

View file

@ -918,6 +918,13 @@ impl ToplevelData {
}
NodeLayerLink::Tiled
}
pub fn is_root_container(&self) -> bool {
let Some(parent) = self.parent.get() else {
return false;
};
parent.node_is_workspace()
}
}
impl Drop for ToplevelData {