Bug 274352

Summary: Empty space left behind when icons are hidden
Product: [Plasma] plasma4 Reporter: Antonio Rojas <arojas>
Component: widget-systemtrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: systray before icon hiding
systray after icon hiding

Description Antonio Rojas 2011-05-28 13:58:27 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Using 4.7 beta 1
When an icon is hidden, its space in the systray is not freed, leaving empty space. It doesn't happen when an icon is removed, only when it's hidden.

Reproducible: Always
Comment 1 Antonio Rojas 2011-05-28 13:59:07 UTC
Created attachment 60407 [details]
systray before icon hiding
Comment 2 Antonio Rojas 2011-05-28 14:00:03 UTC
Created attachment 60408 [details]
systray after icon hiding

Notice the extra empty space, and the "i" icon overlapping the separator.
Comment 3 Marco Martin 2011-05-30 13:37:03 UTC
Git commit 8b447939cd81d74039d8768ca7ea82e8159edfa2 by Marco Martin.
Committed on 30/05/2011 at 13:33.
Pushed by mart into branch 'master'.

delay the preferred size update

with a queue connection, it updates the preferred size at the loop after
removing an entry from the tray.
in this way, the proper updated size gets used
BUG:274352

M  +1    -1    plasma/generic/applets/systemtray/ui/applet.cpp     

http://commits.kde.org/kde-workspace/8b447939cd81d74039d8768ca7ea82e8159edfa2
Comment 4 Antonio Rojas 2011-06-27 06:05:36 UTC
Still valid in 4.7 RC1
Comment 5 Antonio Rojas 2011-09-07 19:23:23 UTC
Seems fixed in 4.7.1