[Bug 158105] Task Manager icon appearing at top left corner when closing window

Anthony Bryant antjbryant at gmail.com
Fri Apr 11 22:20:09 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=158105         
antjbryant gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |antjbryant gmail com



------- Additional Comments From antjbryant gmail com  2008-04-11 22:20 -------
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.


More information about the Panel-devel mailing list