https://bugs.kde.org/show_bug.cgi?id=516180

Kevin Lenz <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Kevin Lenz <[email protected]> ---
I can reproduce this bug on Plasma 6.7.2 (Wayland, Bazzite/Fedora Atomic) even
with a Task Manager present (Icons-only Task Manager). The trigger is different
from the original report:
My scenario: Task Manager exists and works, but there is a timing race between
KWin and plasmashell:
1. A new window is created → KWin fires windowAdded, connects minimizedChanged
signal
2. plasmashell (separate process) needs time to add the window to the taskbar,
calculate icon position, and call set_minimized_geometry() on the KWin window
object
3. If the user minimizes the window before step 2 completes,
window.iconGeometry is still {width:0, height:0} → animation silently skipped
Why this matters: The "no Task Manager" scenario is niche, but this race
condition affects every new window on a standard Plasma setup. The window
disappears instantly with no visual feedback, which is a degraded UX compared
to even the built-in "Fade" or "Scale" animations that don't require
iconGeometry.
Confirmed fix approach (tested locally): In
kinetic_squash/contents/code/main.js, replace the early return with a fallback:
// Before (slotWindowMinimized, ~line 32):
if (iconRect.width == 0 || iconRect.height == 0) {
    return;  // silently skips animation
}

// After:
if (iconRect.width == 0 || iconRect.height == 0) {
    iconRect = {
        x: window.geometry.x + window.geometry.width / 2,
        y: window.geometry.y + window.geometry.height / 2,
        width: 1,
        height: 1
    };
}
This gracefully degrades to a "shrink into center" animation when iconGeometry
is unavailable (regardless of why it's unavailable — missing Task Manager or
race condition), and preserves the existing taskbar-directed animation when
iconGeometry is available. The same fallback should apply to
slotWindowUnminimized().
This aligns with Option 2 from the original report and David's feedback.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to