Bug 236461

Summary: Plasma's taskbar flushes items randomly on window activation
Product: [Unmaintained] plasma4 Reporter: ultr <ultr>
Component: widget-taskbarAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ultr 2010-05-05 19:18:14 UTC
Version:           4.4.3 (using KDE 4.4.3)
Compiler:          gcc 4.x 
OS:                Linux
Installed from:    Debian testing/unstable Packages

I needed my application to activate it's window after a global hotkey is pressed.
I have solved the problem by checking how does Amarok 2.3 handle this.
It calls KWindowSystem::activateWindow() which uses NETRootInfo::setActiveWindow() sending _NET_ACTIVE_WINDOW X event.

However when activating window in the above way, KWin(?) sometimes marks it as Demanding Attention just before truly activating it. If you have your taskbar panel hidden, this results in showing and instantly hiding the panel. It's quite annoying.

Maybe the taskbar should wait several hundreds milliseconds before marking an item as Demanding Attention and showing itself?

Related topic on the KDE Forums: http://forum.kde.org/viewtopic.php?f=111&t=87542&p=156588#p156652
Comment 1 Aaron J. Seigo 2010-05-06 00:29:11 UTC
SVN commit 1123366 by aseigo:

aggregate applet status in the containment
CCBUG:236461


 M  +22 -0     containment.cpp  
 M  +1 -0      containment.h  
 M  +1 -0      private/containment_p.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1123366
Comment 2 Aaron J. Seigo 2010-05-06 00:29:45 UTC
SVN commit 1123367 by aseigo:

instead of (ab)using activate(), use the status levels
CCBUG:236461


 M  +6 -3      abstracttaskitem.cpp  
 M  +12 -2     tasks.cpp  
 M  +1 -1      tasks.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1123367
Comment 3 Aaron J. Seigo 2010-05-06 00:31:43 UTC
SVN commit 1123369 by aseigo:

unhide when an entry needs to be shown, with a small grace period to avoid unhiding for transient events
BUG:236461


 M  +44 -12    panelview.cpp  
 M  +14 -1     panelview.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1123369
Comment 4 ultr 2012-02-15 13:57:12 UTC
I have noticed KDE 4.7.4 does have this issue again.
Comment 5 ultr 2012-08-15 08:50:53 UTC
KDE 4.7.x and 4.8.x have this problem again.
Comment 6 Myriam Schweingruber 2012-09-08 09:18:52 UTC
(In reply to comment #5)
> KDE 4.7.x and 4.8.x have this problem again.

Which exact version? Please state the latest version this is reproducible in and set the version field.
Comment 7 Andrew Crouthamel 2018-09-04 19:13:09 UTC
Hello! Plasma 4 was replaced by Plasma 5 four years ago by the KDE community. In that time we have made great strides in stability and functionality. We are closing all Plasma 4 bugs as most of them are no longer applicable to the new frameworks Plasma 5 is built upon. If you could, please re-test with the latest version of Plasma 5, and submit a new bug to "plasmashell" if you continue to have an issue. Thank you!