mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
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:
parent
1dfcda39d3
commit
2dc7546c3b
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue