forked from quickshell/quickshell
feat(wayland): WaylandLayershell attached property for PanelWindow
This commit is contained in:
parent
13c5d7c7a9
commit
e2063e8b93
2 changed files with 13 additions and 0 deletions
|
@ -150,6 +150,14 @@ void WaylandLayershell::updateAutoExclusion() {
|
|||
}
|
||||
}
|
||||
|
||||
WaylandLayershell* WaylandLayershell::qmlAttachedProperties(QObject* object) {
|
||||
if (auto* obj = qobject_cast<WaylandPanelInterface*>(object)) {
|
||||
return obj->layer;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// WaylandPanelInterface
|
||||
|
||||
WaylandPanelInterface::WaylandPanelInterface(QObject* parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue