Bug 39829 - Menu-Translucency is faked.
Summary: Menu-Translucency is faked.
Status: RESOLVED LATER
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kstyle (show other bugs)
Version: SVN
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Karol Szwed
URL:
Keywords:
: 49736 49895 50311 59148 67096 74885 121325 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-26 16:48 UTC by Hendrik Vom Lehn
Modified: 2007-11-19 18:24 UTC (History)
12 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Vom Lehn 2002-03-26 16:16:01 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: kstyle
Version: 3.0.0 (KDE_3_0_RELEASE)

When cycling through the window-menus you can see the old menu as backgrou=
nd=20
image of the new menu.
I think the problem is that a screenshot is made every time you open a men=
u=20
and the old menu isn't hidden before.

Hendrik vom Lehn


--=20
Programmer: The device for converting coffee into software.

See my public PGP-Key at: http://hennevl.myip.org/pubkey.txt
Or search the key at: http://www.dfn-pca.de/pgpkserv/

Visit my Homepage at: http://www.linux-4-ever.de/
Comment 1 Cristian Tibirna 2002-04-07 22:19:47 UTC
I can't reproduce this report. All seems to work as intended with the menus 
translucency.

-- 
Cristian Tibirna .. tibirna@sympatico.ca
PhD student .. ctibirna@giref.ulaval.ca .. www.giref.ulaval.ca/~ctibirna
KDE developer .. tibirna@kde.org .. www.kde.org

On Tuesday 26 March 2002 11:16 Hendrik vom Lehn wrote:
> Package: kstyle
> Version: 3.0.0 (KDE_3_0_RELEASE)
>
> When cycling through the window-menus you can see the old menu as
> background image of the new menu.
> I think the problem is that a screenshot is made every time you open a
> menu and the old menu isn't hidden before.
>
> Hendrik vom Lehn
Comment 2 Volker Augustin 2002-06-02 08:19:06 UTC
This bug still exists in current HEAD. See
http://homepages.uni-regensburg.de/~auv20213/kde/keramik_overlap.png
for a screenshot. I marked the right side of the ghost menu with an arrow. I 
am using keramik with program-side coloring and transparency set to 50 %.

Volker
Comment 3 John Firebaugh 2002-08-31 16:30:51 UTC
Thank you for your bug report.
This bug/feature request has already been reported and this report will
be marked as a duplicate.
Comment 4 eva 2002-09-23 01:05:09 UTC
Have the same bug here with recent CVS (updated 2 days ago). I am using  
qt-copy.  
  
Greetings,  
eva  
Comment 5 Karol Szwed 2002-10-30 10:53:12 UTC
*** Bug 49895 has been marked as a duplicate of this bug. ***
Comment 6 Karol Szwed 2002-12-14 08:06:23 UTC
*** Bug 49736 has been marked as a duplicate of this bug. ***
Comment 7 Jarl Friis 2003-04-05 15:49:10 UTC
It would be nice to know the bug number that this report have been declared 
dublicate of. My menus behave as reported in this report too (kde-3.1.1 SuSE-8.1 
RPMs).  
 
I think I can explain this in Qt-programmer terms: I believe the problem relies in the 
QMenuBar of the Qt library, in QMenuBar::setActiveItem() the repainted area is 
optimised to not contain more than necessary, further each of the rectangles for the 
menuitems are repainted WiTHOUT erasing the areas first. Erasing the areas would 
not help alone, only get away with the ghost-menus. Further down the 
QMenuBar::setActiveItem() there is an invoke on openActPopup(), but we have not 
yet undone the painting of the previous active item. This is normally not necessary, 
but in translucency situation we would need the widget behind to repaint before 
painting the new menu item. 
 
Further remarks, when using translucency it is further necessary to make the 
transclucent widgets aware of the graphical changes behind the widget (as if it were 
not there at all). To make my point clear, try to start a Konsole and issue a 
ping-command (to some valid ip-address), drop down a translucent menu, and 
notice now that the ping information does not update behind the translucent menu, it 
only uses a snapshot image of what's behind the menu item when it was droped 
down initially. 
 
Jarl 
Comment 8 Chris Howells 2003-05-01 18:00:11 UTC
*** Bug 50311 has been marked as a duplicate of this bug. ***
Comment 9 Hadacek Nicolas 2003-05-31 03:18:47 UTC
*** Bug 59148 has been marked as a duplicate of this bug. ***
Comment 10 Hadacek Nicolas 2003-05-31 03:20:11 UTC
*** Bug 53626 has been marked as a duplicate of this bug. ***
Comment 11 Maksim Orlovich 2003-11-03 05:10:35 UTC
*** Bug 67096 has been marked as a duplicate of this bug. ***
Comment 12 Maksim Orlovich 2004-02-11 00:26:43 UTC
*** Bug 74885 has been marked as a duplicate of this bug. ***
Comment 13 Maksim Orlovich 2004-03-05 03:05:53 UTC
Just changing title... Sorry, can't do much w/o X support, but may be kdrive would be widely accessible soon
Comment 14 Nick Matteo 2005-03-23 02:20:11 UTC
Now that there's X support, is this under consideration again?
Comment 15 Henk Poley 2005-03-25 14:02:57 UTC
In KDE 3.4.x:
Control center -> Appearance & Themes -> Style -> Effect tab

Select "Make translucent" for "Menu effect". In "Menu translucency type" at the bottom now select "XRender blend".

Together with kompmgr translucency and drop shadows it will make your menu's nicely transparent and live updated. You can enable kompmgr here:
Control center -> Desktop -> Window behaviour -> Translucency (checking the box will put up a nice warning, this all is experimental.)
Disable the translucency for "Inactive windows" so you can actually get some work done in multi window programs.

Be aware that this _will_ crash your X server from time to time. And you might need to restart kompmgr every hour or so because it kicks X into CPU eating mode for some reason or another. This stuff is all kind of experimental. This report is not "Closed", but it is getting close ;-)

YMMV.

--
Command to stop/start kompmgr:
dcop kwin KWinInterface stopKompmgr
dcop kwin KWinInterface startKompmgr

Wait a couple of seconds before restarting it, this improves the likelyhood that X will not die... Did I already say this is experimental? Maybe I should do now.. ;-)
Comment 16 N.Cat 2005-04-02 09:50:01 UTC
> ------- Additional Comment #15 From Henk Poley 2005-03-25 14:02 -------  
> In KDE 3.4.x: 
> Control center -> Appearance & Themes -> Style -> Effect tab 
> 
> Select "Make translucent" for "Menu effect". In "Menu translucency type" at
> the bottom now select "XRender blend". 
> 
> Together with kompmgr translucency and drop shadows it will make your menu's
> nicely transparent and live updated. You can enable kompmgr here: 
> Control center -> Desktop -> Window behaviour -> Translucency (checking the
> box will put up a nice warning, this all is experimental.)

"XRender blend" is a feature has been around since KDE 3.1, I believe. It's not
related to the Composite extension, but rather just uses render to draw menu
background pixmaps faster than plain software blending (see the
TransparencyHandler class). It's still fake translucency.
 
Comment 17 Nick Matteo 2005-04-05 01:20:28 UTC
I can confirm that even after turning on X Composite support, enabling kompmgr, and setting menu translucency to XRender blend, this does NOT work: menus still use fake transparency.  Real transparency is working in other applications.
Comment 18 Mats Ahlgren 2006-01-15 08:21:46 UTC
Can confirm this bug; problem is exacerbated when using slow fade-in/out with kompmgr.
Comment 19 Maksim Orlovich 2006-02-03 22:21:17 UTC
*** Bug 121325 has been marked as a duplicate of this bug. ***
Comment 20 Julian Fleischer 2006-06-22 15:38:10 UTC
i think the menu-transluceny as it is by now was introduced before alpha-blending was on a more hardware-near level such as the composite extensions and modern graphics-adapters. The same effect can be seen with the OSD-Display of Amarok or Kicker itself, when set to translucent.

I think i've recently read a comment at kde-apps.org where there is a mindmapping of features for KDE4, one of them was true alpha-blending using "real" alpha-colors together with X.

As the techniques exist nowadays and are widely implemented in X and have got a good suuport it should be a high priority, regarding KDE4 (!), to fix this and to implement such a "true alpha-blending" in whole KDE and by doing this also improving the color-dialog.

in other words: i can confirm this bug, and i think most of the commentators here who say they cannot confirm this bug do not really know what is meant here. sorry.
Comment 21 Maksim Orlovich 2007-11-19 18:24:53 UTC
This is a CANTFIX for 3.x, irrelevant for 4.x (since the composite effects should be used instead)