Bug 166459

Summary: When highlighing a menu item, menu shadow wears off and doesn't redraw
Product: [Plasma] kwin Reporter: Fabio Mereu <fabio.mereu>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: andresbajotierra, roland.leissa, t.zell
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Fabio Mereu 2008-07-13 18:49:44 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

Drop shadows behind widgets (e.g. menus and drop-down lists) partially disappear and don't redraw. This happens when selecting a menu item with mouse pointer, or when scrolling through menus in succession. 
I have a nvidia 7300LE video card with nvidia proprietary drivers ver. 173.08.
Comment 1 Dario Andres 2008-12-25 19:01:34 UTC
Have you experienced this bug again with a recent KDE version? (4.1.3 / 4.2beta2 / 4.2svn) and updated nvidia drivers ?  Thanks :) 
Comment 2 Thomas Zell 2009-02-15 19:48:05 UTC
I have KDE 4.2 und NVidia driver version 180.29, and I still see this.
Comment 3 Thomas Zell 2009-04-05 20:09:56 UTC
Updated to KDE 4.2.2 and NVidia driver 180.44, and I still see this.
Comment 4 Thomas Zell 2009-04-05 20:12:36 UTC
Interestingly this problem does not appear, if I enable the 'blur' plugin. However, the blur plugin causes new problems (namely, graphical corruption and the plasma panel jumping up and down by one pixel when switching desktops), so I have to keep it switched off.
Comment 5 Martin Flöser 2009-04-05 20:51:54 UTC
*** Bug 187540 has been marked as a duplicate of this bug. ***
Comment 6 Roland Leißa 2009-04-06 15:56:17 UTC
I have a gentoo box with a Nvidia GeForce 7600 GT and 180.44 drivers and KDE 4.2.1. There I can see this bug

However on my Kubuntu laptop with Nvidia GeForce 9600 M and 180.44 drivers and KDE 4.2.2 everything is fine.
Comment 7 Roland Leißa 2009-05-27 05:54:38 UTC
Upgraded to KDE 4.3 beta 1 (on my kubuntu laptop). Now I have the same problems and some new ones:
- shadows are not redrawn
- the corners of menus sometimes get black edges
- a submenu which should overlap the root menu is transparent and I can see both.

I guess there is either something messed up with the z-values 
(is depth test enabled? Does every menu have a reasonable z-value?)
or something is messed up with the alpha values 
(is the proper alpha function used? are menus drawn from back to front (or front to back respectively depending on the alpha function used))
Comment 8 Martin Flöser 2009-05-27 10:00:06 UTC
(In reply to comment #7)
> Upgraded to KDE 4.3 beta 1 (on my kubuntu laptop). Now I have the same problems
> and some new ones:
> - shadows are not redrawn
> - the corners of menus sometimes get black edges
> - a submenu which should overlap the root menu is transparent and I can see
> both.
There is a known bug in beta 1 concerning decorations which has been resolved. So very likely that problem is fixed as well. If not it could still be another issue for bug #193808.
> 
> I guess there is either something messed up with the z-values 
> (is depth test enabled? Does every menu have a reasonable z-value?)
There is no depth test
Comment 9 Thomas Zell 2009-07-24 22:55:15 UTC
I have made a new observation:
Disabling the translucency plugin fixes the issue.
The shadows are also drawn correctly when the translucency plugin is enabled, and the menu translucency is set to less than 100%.
Comment 10 Thomas Lübking 2009-07-25 00:11:27 UTC
can you still confirm this with some 4.3rc or trunk?
Comment 11 Thomas Zell 2009-08-05 23:18:59 UTC
I installed 4.3 just now. It's working!