Commit 87579efb authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Task Manager] Fix Unity launcher count badge rendering when task is created

When moving a window that currently has a count badge between screens,
the newly created task on the other screen will have a glitched out badge overlay.

The anchors.fill didn't reliably work with the Loader, it seems it tries to deduce
a size from the item it loaded which is rubbish.
Forcing a width/height explicitly fixes this.

Differential Revision:
parent a6b03403
......@@ -340,7 +340,11 @@ MouseArea {
Loader {
anchors.fill: icon
// QTBUG anchors.fill in conjunction with the Loader doesn't reliably work on creation:
// have a window with a badge, move it from one screen to another, the new task item on the
// other screen will now have a glitched out badge mask.
width: parent.width
height: parent.height
asynchronous: true
source: "TaskBadgeOverlay.qml"
active: plasmoid.configuration.smartLaunchersEnabled && height >= units.iconSizes.small
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment