Put hack back -mig

This commit is contained in:
Miguel de Icaza 1998-04-30 23:55:40 +00:00
parent f0e14b4328
commit bb969259ad
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,7 @@
1998-04-30 Miguel de Icaza <miguel@nuclecu.unam.mx> 1998-04-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtrans.c (make_transparent_window): Put hack back.
* gcache.c (image_cache_load_image): Federico spooted the problem: * gcache.c (image_cache_load_image): Federico spooted the problem:
I have to duplicate my keys for the hash. I have to duplicate my keys for the hash.

View File

@ -388,6 +388,13 @@ make_transparent_window (char *file)
gtk_widget_set_usize (window, im->rgb_width, im->rgb_height); gtk_widget_set_usize (window, im->rgb_width, im->rgb_height);
gdk_imlib_apply_image (im, window->window);
/* All of the following 3 lines should not be required, only
* gdk_imlib_apply_image, but is is buggy.
*/
gdk_imlib_render (im, im->rgb_width, im->rgb_height);
gdk_window_set_back_pixmap (window->window, gdk_imlib_move_image (im), FALSE);
gdk_window_shape_combine_mask (window->window, gdk_imlib_move_mask (im), 0, 0);
return window; return window;
} }