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 736155 - gtk_window_draw draws background twice and breaks with translucent background color
gtk_window_draw draws background twice and breaks with translucent background...
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: Other
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-09-05 18:46 UTC by Christoph Reiter (lazka)
Modified: 2014-09-06 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christoph Reiter (lazka) 2014-09-05 18:46:01 UTC
This can be seen for tooltips for example where alpha of 0.5 results in 0.75 drawn.

A workaround for the tooltip case is to add a 

.window-frame.csd.tooltip { background-color:transparent; }

so it gets only matched once in gtk_window_draw()
Comment 1 Christoph Reiter (lazka) 2014-09-05 19:26:39 UTC
As pointed out on IRC drawing twice is needed here since GtkWindow handles drawing the frame + the background.

To make this work it removes the background in one draw and adds a frame-window instead.

Given a GtkWindow with class "custom", everything for drawing the frame should use ".custom.window-frame {..}" and everything else should use ".custom.background {..}"

In the the tooltip case ".tooltip.background {..}" instead of ".tooltip {..}".
Comment 2 Lapo Calamandrei 2014-09-06 14:04:52 UTC
Background! That's the only one I didn't try, good, with master you should have the right background, finally :-)