IPC: IPC calls now properly identified the proper monitor so that dimming and other stuff works better.

This commit is contained in:
LemmyCook 2025-09-04 09:37:50 -04:00
parent 902cdc39e0
commit d319ab9bfc
2 changed files with 20 additions and 9 deletions

View file

@ -52,6 +52,7 @@ Loader {
property alias isClosing: hideTimer.running
readonly property real barHeight: Math.round(Style.barHeight * scaling)
readonly property bool barAtBottom: Settings.data.bar.position === "bottom"
readonly property bool barIsVisible: (screen !== null) && (Settings.data.bar.monitors.includes(screen.name) || (Settings.data.bar.monitors.length === 0))
signal opened
signal closed
@ -163,8 +164,8 @@ Loader {
anchors.left: true
anchors.right: true
anchors.bottom: true
margins.top: !barAtBottom ? barHeight : 0
margins.bottom: barAtBottom ? barHeight : 0
margins.top: (barIsVisible && !barAtBottom) ? barHeight : 0
margins.bottom: (barIsVisible && barAtBottom) ? barHeight : 0
// Close any panel with Esc without requiring focus
Shortcut {