Bug 158105 - Task Manager icon appearing at top left corner when closing window
Summary: Task Manager icon appearing at top left corner when closing window
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-20 17:30 UTC by Unknown
Modified: 2008-05-24 08:57 UTC (History)
1 user (show)

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


Attachments
video showing this bug in action(crap.. i cant correctly add attachment its a .ogv file:/) (387.24 KB, application/octet-stream)
2008-03-30 23:21 UTC, Sebastian Kuźlak
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***.