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
+10 -1
View File
@@ -15,7 +15,16 @@ Item {
// A panel can only be a attached to the bar of screen edges if
property bool couldAttach: Settings.data.ui.panelsAttachedToBar
property bool couldAttachToBar: (Settings.data.ui.panelsAttachedToBar && Settings.data.bar.backgroundOpacity >= 1.0)
property bool couldAttachToBar: {
if (!Settings.data.ui.panelsAttachedToBar || Settings.data.bar.backgroundOpacity < 1.0) {
return false
}
// A panel can only be attached to a bar if there is a bar on that screen
var monitors = Settings.data.bar.monitors || []
var result = monitors.length === 0 || monitors.includes(screen.name)
return result
}
// Edge snapping: if panel is within this distance (in pixels) from a screen edge, snap
property real edgeSnapDistance: 50