From 1f1e67f90be39460bd7f087c0c538545a092ccc1 Mon Sep 17 00:00:00 2001 From: Niklas Stephanblome Date: Mon, 9 Jan 2023 16:29:52 +0000 Subject: [PATCH] effects/overview: Correct size of active virtual desktop highlight outline The focus outline that highlights the active virtual desktop in the Overview effect, as well as the half-transparent outlines that are around the other virtual desktops, cover 2 pixels on every side of every virtual desktop thumbnail. This is because an invisible rectangle is used that has the same size as the thumbnail and has a colored border, but borders are always drawn on the inside of QML rectangles, so content in the thumbnail is covered up. Therefore, the width of the rectangle has to be slightly adjusted to account for the thickness of the border. BUG: 450963 FIXED-IN: 5.27 --- src/effects/overview/qml/DesktopBar.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/effects/overview/qml/DesktopBar.qml b/src/effects/overview/qml/DesktopBar.qml index 7cbf1037e2..88616f79a1 100644 --- a/src/effects/overview/qml/DesktopBar.qml +++ b/src/effects/overview/qml/DesktopBar.qml @@ -153,6 +153,7 @@ Item { Rectangle { readonly property bool active: !thumbnail.scaled && (delegate.activeFocus || dropArea.containsDrag || mouseArea.containsPress || bar.selectedDesktop === delegate.desktop) anchors.fill: parent + anchors.margins: -border.width radius: 3 color: "transparent" border.width: 2