window-management: prevent dragging the root container
This commit is contained in:
parent
f16a95beeb
commit
bcf2c8231d
2 changed files with 14 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue