Bug 246874 - Quit a program in the extended system-tray section leaves empty space
Summary: Quit a program in the extended system-tray section leaves empty space
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-systemtray (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 258856 259806 261276 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-06 08:33 UTC by H.H.
Modified: 2011-02-05 14:03 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
empty extended systemtray area (closed one application) (11.35 KB, image/jpeg)
2010-08-06 08:33 UTC, H.H.
Details
System Tray Extender with empty entries and wrong dimensions (20.18 KB, image/png)
2010-09-07 16:12 UTC, JR
Details
Gap in systram tray expander (10.65 KB, image/jpeg)
2011-01-07 19:04 UTC, Christoph Feck
Details
Another gap in systram tray expander (7.59 KB, image/jpeg)
2011-01-14 03:50 UTC, Christoph Feck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description H.H. 2010-08-06 08:33:29 UTC
Created attachment 49862 [details]
empty extended systemtray area (closed one application)

Version:           unspecified
OS:                Linux

to reproduce:
I open the extended system-tray section (little up-arrow on the right), right click a program and "quit" it. After that there is an empty area in the extended system-tray-area, even when reopen the area. If the program was the only one, the extender stays there, and the area is empty (with the "placeholder" for the closed program).

by the way: I liked the extender in kde-4.4 much more, please revert it back.


Reproducible: Always




OS: Linux (x86_64) release 2.6.34-12-desktop
Compiler: gcc
Comment 1 Christoph Feck 2010-08-07 10:25:37 UTC
Please add your vote (and comment) for the old behavior to bug 242230. It is unfortunately closed as "WONTFIX" despite the high number of votes.
Comment 2 JR 2010-09-07 16:12:04 UTC
Created attachment 51390 [details]
System Tray Extender with empty entries and wrong dimensions

Still present in 4.5.1, observed on Kubuntu maverick beta. plasma-desktop package version 4:4.5.1-0ubuntu1.

How to reproduce:
1. Ensure the extender is populated with icons (Device Notifier, Kmix, Klipper, etc) by setting them to be hidden in the System Tray settings
2. Click the extender arrow to expand the list
3. Observe and make note of list dimensions
4. Right-click an icon and close its corresponding application, making the icon disappear

What happens:
5. List dimensions stays the same as at (3), showing empty list entries as if it were and array and entry[2] was empty but entry[3] was populated

What should happen instead:
5. List dimensions get recalculated now that the number of icons it houses has changed. List entries get "resorted"

Additional notes:
It gets properly resized when icons are added - just not when icons are removed.

Attaching another screenshot. Here I have right-clicked and closed a few programs. Note the empty entries.

This may be as easy as adding a call to the size-recalculator method used when the list needs to grow, in which case I guess it could be a Junior Job? Then again, it might not.
Comment 3 Tanja Schulte 2010-10-10 15:33:07 UTC
I also can confirm this with Kubuntu and 4.5.1.
Comment 4 Alexey Shildyakov 2010-12-11 13:13:47 UTC
Confirm that bug still present in KDE 4.5.4
Comment 5 Dario Andres 2010-12-14 13:51:47 UTC
*** Bug 259806 has been marked as a duplicate of this bug. ***
Comment 6 Marco Martin 2010-12-21 16:59:48 UTC
fixed in trunk (fixing commit linked to a duplicate of this bug)
Comment 7 Dario Andres 2010-12-21 17:11:02 UTC
[Comment from a bug triager]
Commit message (bug 258856):
SVN commit 1204951 by mart:

resize hiddenTasksWidget at its minimum size hint after removing a task.
necessary due qgraphicslayouts not resizing the parent widget (not a bug in
that case, justhow they are)
BUG:258856


 M  +4 -0      taskarea.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1204951
Comment 8 Dario Andres 2010-12-21 17:11:19 UTC
*** Bug 258856 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2010-12-21 17:15:28 UTC
Not fixed here.
Comment 10 Marco Martin 2010-12-21 17:30:39 UTC
what svn revision?
Comment 11 Christoph Feck 2011-01-07 19:04:44 UTC
Created attachment 55707 [details]
Gap in systram tray expander

Screenshot from r1212382, after quitting Konversation (which was shown in the middle).
Comment 12 Christoph Feck 2011-01-14 03:50:26 UTC
Created attachment 55995 [details]
Another gap in systram tray expander

Not sure if it is the same bug, but this snapshot is from a freshly booted r1214290 after starting Kontact. The odd behavior here is that hovering the "KDE Wallet Manager" text highlights the corresponding icon, as shown in the snapshot.
Comment 13 Alexey Shildyakov 2011-02-04 13:08:56 UTC
The problem exist in KDE 4.6.0.
The important behavior: if close application placed in bottom of the hidden systray the bug won't be produced. But if close application placed in top or in the middle of hidden systray the bug will be presented.

Reply to comment #12:
Think that is different bug 249664. Please, check it. This is may be affected only in air theme.
Comment 14 Alexey Shildyakov 2011-02-04 13:11:30 UTC
And this is duplicate of bug 261276. Think that bug should be marked as dup of this because at this bug we have some conversation.
Comment 15 Aaron J. Seigo 2011-02-04 18:36:04 UTC
sorry, it's working here, including with items in the middle. the layout classes in QGraphicsView are less than robust, and we're doing absolutely everything possible with them to get them to behave. there is nothing more we can do externally, and it does work at least most of the time (it actually works all the time here, but maybe i'm just lucky).
Comment 16 Aaron J. Seigo 2011-02-04 18:37:42 UTC
*** Bug 261276 has been marked as a duplicate of this bug. ***
Comment 17 Alexey Shildyakov 2011-02-04 18:44:19 UTC
What version of Qt do you use?
I'm using Qt-4.7.1, Gentoo
Do anybody else confirm that this works?
Comment 18 Aaron Lewis 2011-02-05 14:03:56 UTC
On 18:44 Fri 04 Feb     , Alexey Shildyakov wrote:
> https://bugs.kde.org/show_bug.cgi?id=246874
> 
> 
> 
> 
> 
> --- Comment #17 from Alexey Shildyakov <ashl1future gmail com>  2011-02-04 18:44:19 ---
> What version of Qt do you use?
> I'm using Qt-4.7.1, Gentoo
> Do anybody else confirm that this works?
> 

Anybody tried GTK programs ? it's failing here in trunk.

i.e liferea , in "Preferences" , you repeatly check the box "show tray
icon" and uncheck it , you got empty areas in systray.

Same , Gentoo & KDE overlay

What do you think ?

-Aaron