UNCONFIRMED 111359
GtkWebKit background is not transparent
https://bugs.webkit.org/show_bug.cgi?id=111359
Summary GtkWebKit background is not transparent
Rena Kunisaki
Reported 2013-03-04 13:24:16 PST
Created attachment 191300 [details] Test script Using WebKitGTK, I set the widget to be transparent, and apply RGBA colormap to the window, but the WebKit widget is still drawn with the default widget background colour and no transparency. The same code worked on my old (32-bit) machine but is not working on a new machine. navigator.userAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.6+ (KHTML, like Gecko) Chromium/17.0.963.56 Chrome/17.0.963.56 Safari/537.6+
Attachments
Test script (1.93 KB, text/x-lua)
2013-03-04 13:24 PST, Rena Kunisaki
no flags
How the widget appears (128.36 KB, image/png)
2013-03-04 13:24 PST, Rena Kunisaki
no flags
Rena Kunisaki
Comment 1 2013-03-04 13:24:58 PST
Created attachment 191301 [details] How the widget appears
Martin Robinson
Comment 2 2013-03-05 07:27:59 PST
You also need to set the widget colormap to an RGBA one. For example, see: https://github.com/TideSDK/TideSDK/blob/master/src/modules/ui/gtk/gtk_user_window.cpp#L295
Rena Kunisaki
Comment 3 2013-03-05 12:40:18 PST
Thanks, I thought I must have been doing something wrong, but I thought since it had worked on another system it must have been correct. Unless I'm just losing it... Unfortunately lgi is segfaulting when I try to get the colormap, so I can't be completely certain it works.
Martin Robinson
Comment 4 2013-03-05 12:42:12 PST
(In reply to comment #3) > Thanks, I thought I must have been doing something wrong, but I thought since it had worked on another system it must have been correct. Unless I'm just losing it... > > Unfortunately lgi is segfaulting when I try to get the colormap, so I can't be completely certain it works. I believe you may also need a display capable of supporting RGBA colormaps. Perhaps try turning on compositing in your window manager.
Rena Kunisaki
Comment 5 2013-03-05 12:44:08 PST
I do have compositing enabled and working... it crashes in get_rgb_colormap too, so I doubt it's that.
Rena Kunisaki
Comment 6 2013-03-06 12:43:21 PST
Actually, according to https://developer.gnome.org/gtk3/stable/ch24s02.html#idm140520296119968 colormaps are replaced with visuals in GTK3, so the code was correct... adding webview:set_visual(visual) doesn't help either.
Note You need to log in before you can comment on or make changes to this bug.