Struct runa_wayland_protocols::stable::xdg_shell::xdg_toplevel::v5::requests::SetParent
source · pub struct SetParent {
pub parent: Object,
}
Expand description
set the parent of this surface
Set the “parent” of this surface. This surface should be stacked above the parent surface and all other ancestor surfaces.
Parent surfaces should be set on dialogs, toolboxes, or other “auxiliary” surfaces, so that the parent is raised when the dialog is raised.
Setting a null parent for a child surface unsets its parent. Setting a null parent for a surface which currently has no parent is a no-op.
Only mapped surfaces can have child surfaces. Setting a parent which is not mapped is equivalent to setting a null parent. If a surface becomes unmapped, its children’s parent is set to the parent of the now-unmapped surface. If the now-unmapped surface has no parent, its children’s parent is unset. If the now-unmapped surface becomes mapped again, its parent-child relationship is not restored.
The parent toplevel must not be one of the child toplevel’s descendants, and the parent must be different from the child toplevel, otherwise the invalid_parent protocol error is raised.
Fields§
§parent: Object