From 2dc7546c3b21c201499fcbaa814b6156f91362dc Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Thu, 27 Jun 2024 23:22:13 -0400 Subject: [PATCH] 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. --- containments/panel/package/contents/ui/main.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/containments/panel/package/contents/ui/main.qml b/containments/panel/package/contents/ui/main.qml index 90eb42b9..ae45bce5 100644 --- a/containments/panel/package/contents/ui/main.qml +++ b/containments/panel/package/contents/ui/main.qml @@ -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