Bug 514005

Summary: Standard action for minimize associated window behave incorrectly
Product: [Frameworks and Libraries] frameworks-kstatusnotifieritem Reporter: Trần Nam Tuấn (Bill) <tuantran1632001>
Component: generalAssignee: Alexander Lohnau <alexander.lohnau>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Trần Nam Tuấn (Bill) 2025-12-31 11:58:10 UTC
SUMMARY
When standard action is enabled in KStatusNotifierItem, actions for minimize and restore the associated window are created. The restore action work as expected, but the minimize action seemingly also try to restore the window.

STEPS TO REPRODUCE
1. Create an instance of KStatusNotifierItem.
2. Set the main window as associated window for KStatusNotifierItem.
3. Launch the application and select minimize action in tray icon menu.

OBSERVED RESULT
If the window is on top, the minimize action produce no visual feedback. If the window is not on top/unfocused, the window notifies it presence by glowing in the Task Manger.

EXPECTED RESULT
The minimize action should hide the window.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.12.63-1-lts (64-bit)
Graphics Platform: Wayland
Comment 1 Trần Nam Tuấn (Bill) 2025-12-31 12:36:40 UTC
Huh. Clicking on the tray icon itself seem to work properly.
Comment 2 Trần Nam Tuấn (Bill) 2026-01-04 22:07:49 UTC
Well, the "activateRequested(bool active, const QPoint &pos)" signal never emit the "active" bool as false, it seems.