X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fgrabscreen.c;h=6f88e5a10dc4ad9772c8a9874cf44d41a5968a65;hb=06e9a7886a77cad92f9ddbc169d6d199a4d8b76d;hp=3919457c7b5a5c6e6b7a72c9972fe50942cffe6f;hpb=3210e7e80ee2b5a7d2049a5aaff9f17b9c93dcc9;p=xscreensaver diff --git a/utils/grabscreen.c b/utils/grabscreen.c index 3919457c..6f88e5a1 100644 --- a/utils/grabscreen.c +++ b/utils/grabscreen.c @@ -288,6 +288,13 @@ grab_screen_image_1 (Screen *screen, Window window) #endif /* DEBUG */ copy_default_colormap_contents (screen, xgwa.colormap, xgwa.visual); raise_window(dpy, window, saver_p); + + /* Generally it's bad news to call XInstallColormap() explicitly, + but this file does a lot of sleazy stuff already... This is to + make sure that the window's colormap is installed, even in the + case where the window is OverrideRedirect. */ + if (xgwa.colormap) XInstallColormap (dpy, xgwa.colormap); + XSync (dpy, False); } } else /* root_p */