mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
IPC: allow IPC calls to open panels when the bar is invisible.
This commit is contained in:
@@ -451,6 +451,9 @@ PanelWindow {
|
||||
id: barLoader
|
||||
asynchronous: false
|
||||
sourceComponent: root.barComponent
|
||||
// Keep bar loaded but hide it when BarService.isVisible is false
|
||||
// This allows panels to remain accessible via IPC
|
||||
visible: BarService.isVisible
|
||||
|
||||
// Fill parent to provide dimensions for Bar to reference
|
||||
anchors.fill: parent
|
||||
|
||||
@@ -206,8 +206,6 @@ ShellRoot {
|
||||
property bool shouldBeActive: {
|
||||
if (!i18nLoaded || !settingsLoaded)
|
||||
return false
|
||||
if (!BarService.isVisible)
|
||||
return false
|
||||
if (!modelData || !modelData.name)
|
||||
return false
|
||||
|
||||
@@ -283,9 +281,9 @@ ShellRoot {
|
||||
}
|
||||
|
||||
// BarExclusionZone - created after NFullScreenWindow has fully loaded
|
||||
// Must also be disabled when bar is disabled (follows shouldBeActive)
|
||||
// Must also be disabled when bar is hidden
|
||||
Loader {
|
||||
active: parent.windowLoaded && parent.shouldBeActive
|
||||
active: parent.windowLoaded && parent.shouldBeActive && BarService.isVisible
|
||||
asynchronous: false
|
||||
|
||||
sourceComponent: BarExclusionZone {
|
||||
|
||||
Reference in New Issue
Block a user