Shell/Bar: create full screen window everywhere so there is no limitations.

This commit is contained in:
ItsLemmy
2025-11-04 09:59:26 -05:00
parent dc69d1f1e6
commit fd79f75fd5
5 changed files with 37 additions and 30 deletions
+11 -7
View File
@@ -209,11 +209,8 @@ ShellRoot {
if (!modelData || !modelData.name)
return false
var monitors = Settings.data.bar.monitors || []
var result = monitors.length === 0 || monitors.includes(modelData.name)
Logger.d("Shell", "NFullScreenWindow Loader for", modelData?.name, "- shouldBeActive:", result, "- monitors:", JSON.stringify(monitors))
return result
Logger.d("Shell", "NFullScreenWindow activated for", modelData?.name)
return true
}
property bool windowLoaded: false
@@ -281,9 +278,16 @@ ShellRoot {
}
// BarExclusionZone - created after NFullScreenWindow has fully loaded
// Must also be disabled when bar is hidden
// Disabled when bar is hidden or not configured for this screen
Loader {
active: parent.windowLoaded && parent.shouldBeActive && BarService.isVisible
active: {
if (!parent.windowLoaded || !parent.shouldBeActive || !BarService.isVisible)
return false
// Check if bar is configured for this screen
var monitors = Settings.data.bar.monitors || []
return monitors.length === 0 || monitors.includes(modelData?.name)
}
asynchronous: false
sourceComponent: BarExclusionZone {