panel: Fix it not being full-width at a certain width

Sometimes when the screen is wide enough, the panel doesn't extend all the way. Ensure that it does.
This commit is contained in:
Devin Lin 2024-06-27 23:22:13 -04:00
parent 1dfcda39d3
commit 2dc7546c3b

View file

@ -25,6 +25,8 @@ ContainmentItem {
Plasmoid.backgroundHints: PlasmaCore.Types.NoBackground
Plasmoid.status: PlasmaCore.Types.PassiveStatus // ensure that the panel never takes focus away from the running app
onWidthChanged: maximizeTimer.restart()
// filled in by the shell (Panel.qml) with the plasma-workspace PanelView
property var panel: null
onPanelChanged: {
@ -33,6 +35,14 @@ ContainmentItem {
}
}
// Ensure that panel is always the full width of the screen
Timer {
id: maximizeTimer
running: false
interval: 100
onTriggered: root.panel.maximize()
}
// only opaque if there are no maximized windows on this screen
readonly property bool showingApp: windowMaximizedTracker.showingWindow
readonly property color backgroundColor: topPanel.colorScopeColor