GNOME Bugzilla – Bug 736155
gtk_window_draw draws background twice and breaks with translucent background color
Last modified: 2014-09-06 14:04:52 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()
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 {..}".
Background! That's the only one I didn't try, good, with master you should have the right background, finally :-)