After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 516226 - Some themes can have transluceny effects
Some themes can have transluceny effects
Status: RESOLVED OBSOLETE
Product: metacity
Classification: Other
Component: Iain's compositor
2.21.x
Other Linux
: Normal normal
: ---
Assigned To: Metacity compositor maintainers
Metacity compositor maintainers
: 509530 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-02-13 12:19 UTC by Andrea Cimitan
Modified: 2016-02-07 23:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot of the bug (684.75 KB, image/png)
2008-03-23 22:46 UTC, Andrea Cimitan
Details

Description Andrea Cimitan 2008-02-13 12:19:02 UTC
I don't know if this is wanted or not... but causes rendering glitches or transparency to metacity when the application is RGBA.

try for example with gnome-system-monitor from the svn, it uses gtk_widget_set_default_colormap() with an rgba colormap.

With Clearlooks window borders there are glitches on the left/right/buttom frame, using other themes you'll get transparency (which could be nice ehehe too :) )

Maybe could be AMAZING to force rgb everywhere, and add a parameter like theme_opacity to adjust the whole transparency of the theme (except the Text).

Btw we should fix the first bug in time for 2.22 or we will have bad window borders with system-monitor :)
Comment 1 Thomas Thurman 2008-03-23 22:35:18 UTC
I don't know enough about composited colourmaps to say.  Iain, do you have any thoughts on the matter?
Comment 2 Andrea Cimitan 2008-03-23 22:42:11 UTC
Clearlooks 2.22 metacity theme got a workaround for this bug.

But if you're using a blank metacity theme than you'll have a white (#ffffff) transparency.

I have this issue on 2 different PCs
Comment 3 Andrea Cimitan 2008-03-23 22:46:40 UTC
Created attachment 107887 [details]
screenshot of the bug

Mist metacity theme (inactive titlebar) is showing the problem (gdk screen is composited and system-monitor has RGBA colormap)
Comment 4 iain 2008-03-24 01:25:48 UTC
As far as I'm aware an RGBA window needs to be reparented inside another RGBA window, however I'm not an X guru so could be wrong about this. This means that the window that metacity uses for the frame on an RGBA window needs to be RGBA as well.

One of Jimmacs metacity themes had this problem and he fixed it in the theme.
Comment 5 Andrea Cimitan 2008-03-24 11:34:49 UTC
But we can't fix every theme, we should simply fix metacity code
Comment 6 Thomas Thurman 2008-03-24 13:45:19 UTC
Hey, is bug 509530 a duplicate of this?
Comment 7 Andrea Cimitan 2008-03-24 13:48:12 UTC
*** Bug 509530 has been marked as a duplicate of this bug. ***
Comment 8 Andrea Cimitan 2008-03-24 13:48:14 UTC
yeah, marked as duplicate
Comment 9 iain 2008-03-24 16:29:34 UTC
(In reply to comment #5)
> But we can't fix every theme, we should simply fix metacity code

The point is however that as far as I'm aware the metacity code isn't broken. If you show me otherwise then I'll fix it, but as I pointed out in comment #4 any RGBA window is going to get an RGBA frame. If the theme then proceeds to render with an alpha value (whether by design or by accident) its going to appear translucent.
Comment 10 Andrea Cimitan 2008-03-24 16:34:55 UTC
if you're not doing anything (like mist) then you'll have an alpha #ffffff
I cannot see any alpha operations in the code, but we have an alpha #ffffff
Comment 11 iain 2008-03-24 23:39:11 UTC
are you doing blends? I believe that was jimmacs problem, that plus he wasn't drawing on certain parts.
Comment 12 Andrea Cimitan 2008-03-24 23:56:01 UTC
I don't think Mist theme is doing blends... :)
It's a flat theme, without anything.
Comment 13 iain 2008-03-25 00:04:10 UTC
Make the summary match the actual problem.
Comment 14 Andrea Cimitan 2008-03-25 00:09:15 UTC
but the summury does not highlight that the problem is reproduced just when:
1) the window is using a RGBA colormap
2) the metacity theme is not filling some parts of the frame: in fact if you add a <rectangle color="gtk:bg[NORMAL]" filled="true" x="0" y="0" width="width" height="height" /> then you have no transparency. (of course not, since it is filled, Mist in fact is doing anything, and then it is transparent)
Comment 15 Thomas Thurman 2008-03-31 12:01:28 UTC
*** Bug 525298 has been marked as a duplicate of this bug. ***
Comment 16 alexvillacislasso 2008-11-10 17:44:11 UTC
I have also experienced this with several themes, including Clearlooks and Gilouche. I thought at first this was an xorg bug, so I opened the following bug report:

http://bugzilla.gnome.org/show_bug.cgi?id=516226

Still present with 2.23.55.

It is not clear whether this is a metacity bug, a theme bug, an app bug, or an xserver bug. Was any resolution reached on this bug?