Bug 158105

Summary: Task Manager icon appearing at top left corner when closing window
Product: [Plasma] plasma4 Reporter: Unknown <null>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: antjbryant
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: video showing this bug in action(crap.. i cant correctly add attachment its a .ogv file:/)

Description Unknown 2008-02-20 17:30:15 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) 
OS:                Linux

When I close a window with an entry in the task manager in the panel, it's entry disappears immediately from the panel, but for a short time (~0,5 seconds) it's visible at the top-left corner before it completely disappears.
Comment 1 Sebastian Kuźlak 2008-03-30 23:21:59 UTC
Created attachment 24132 [details]
video showing this bug in action(crap.. i cant correctly add attachment its a .ogv file:/)

i was going to report this bug myself but as i see its already reaported.
Comment 2 Anthony Bryant 2008-04-11 22:20:07 UTC
Although I'm not a KDE developer, I've been looking through the code for the taskbar plasmoid, and I found this in kdebase/workspace/plasma/applets/tasks/taskgroupitem.cpp:

void TaskGroupItem::removeTask(AbstractTaskItem *item)
{
...snip...
layout()->removeItem(item);
item->setParentItem(0);
queueGeometryUpdate();

It looks like the second line here is setting the parent to 0, which according to the QT API makes the item a top level item. I think the item must still be painted for a while after it is set to a top level item, and the layout only sets its position relative to its parent component, which causes it to be shown in that position relative to the top left of the screen.
I'm not sure where the item is actually destroyed, or why it is completely removed a short time after it is removed from the taskbar (possibly to do with the geometry update), but someone probably needs to look into this.
Comment 3 Aaron J. Seigo 2008-05-24 08:57:30 UTC
*** Bug has been marked as fixed ***.