Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 286685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:39:31+00:00 2026-05-12T05:39:31+00:00

I’m trying to gauge the possibility of a patch to WebKit which would allow

  • 0

I’m trying to gauge the possibility of a patch to WebKit which would allow all rendered graphics to be rendered onto a fully transparent background.

The desired effect is to render web content without any background at all, it should appear to float over the desktop (or whatever is displayed behind the browser window).

Has anyone seen an app do this? (I can think of some terminal emulators that can.) If anyone has worked inside of WebKit (or possibly Gecko?) do you think it would be possible to do this?


Update: I’ve come to realize that Mac OSX dashboard widgets use this exact technique. So, this must be possible.


Update 2: I’ve compiled WebKit on linux and noticed the configure options include:

--enable-dashboard-support
enable Dashboard support default=yes

I’m getting closer. Can anyone help?


Update 3: I continue to find references to this in posts on various related mailing lists.

  • https://lists.webkit.org/pipermail/webkit-dev/2008-September/005019.html
  • https://lists.webkit.org/pipermail/webkit-dev/2009-June/008182.html
  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:39:31+00:00Added an answer on May 12, 2026 at 5:39 am

    Solved!

    Through ongoing research, scouring forums and source code repositories, I peiced together the necessary steps to accomplish this using only libwebkit and a standard compiz desktop (any Xorg desktop with compositing should do).

    For a current libwebkit (1.1.10-SVN), there is an Ubuntu PPA:

    deb http://ppa.launchpad.net/webkit-team/ppa/ubuntu jaunty main
    deb-src http://ppa.launchpad.net/webkit-team/ppa/ubuntu jaunty main
    

    As far as the code goes, the key is calling webkit_web_view_set_transparent.

    And of course the system you’re running it on should have a capable graphics card (intel, radeon, or nvidia) and be running a compositing window manager (like Compiz).

    And finally, to actually see transparency, the content you’re viewing must set a transparent background using CSS3, otherwise it’s still completely opaque.

    It’s as simple as:

    BODY { background-color: rgba(0,0,0,0); }
    

    Here’ is the full sample for the simplest possible webkit browser app, with transparency support:

    #include <gtk/gtk.h>
    #include <webkit/webkit.h>
    
    static void destroy_cb(GtkWidget* widget, gpointer data) {
      gtk_main_quit();
    }
    
    int main(int argc, char* argv[]) {
      gtk_init(&argc, &argv);
    
      if(!g_thread_supported())
        g_thread_init(NULL);
    
      // Create a Window, set colormap to RGBA
      GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
      GdkScreen *screen = gtk_widget_get_screen(window);
      GdkColormap *rgba = gdk_screen_get_rgba_colormap (screen);
    
      if (rgba && gdk_screen_is_composited (screen)) {
        gtk_widget_set_default_colormap(rgba);
        gtk_widget_set_colormap(GTK_WIDGET(window), rgba);
      }
    
      gtk_window_set_default_size(GTK_WINDOW(window), 800, 800);
      g_signal_connect(window, "destroy", G_CALLBACK(destroy_cb), NULL);
    
      // Optional: for dashboard style borderless windows
      gtk_window_set_decorated(GTK_WINDOW(window), FALSE);
    
    
      // Create a WebView, set it transparent, add it to the window
      WebKitWebView* web_view = web_view = WEBKIT_WEB_VIEW(webkit_web_view_new());
      webkit_web_view_set_transparent(web_view, TRUE);
      gtk_container_add (GTK_CONTAINER(window), GTK_WIDGET(web_view));
    
      // Load a default page
      webkit_web_view_load_uri(web_view, "http://stackoverflow.com/");
    
      // Show it and continue running until the window closes
      gtk_widget_grab_focus(GTK_WIDGET(web_view));
      gtk_widget_show_all(window);
      gtk_main();
      return 0;
    }
    

    Screenshot!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
I have a text area in my form which accepts all possible characters from
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
I used javascript for loading a picture on my website depending on which small
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.