X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fgrabscreen.h;h=19d01e2aa2e165df4add8aeb37cf9426d1e98875;hp=3d9b16eb9e2cf92ed86e5c6ff3dddc2ae39a5b6e;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=9c9d475ff889ed8be02e8ce8c17da28b93278fca diff --git a/utils/grabscreen.h b/utils/grabscreen.h index 3d9b16eb..19d01e2a 100644 --- a/utils/grabscreen.h +++ b/utils/grabscreen.h @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992, 1993, 1994, 1997, 2001, 2003 +/* xscreensaver, Copyright (c) 1992, 1993, 1994, 1997, 2001, 2003, 2004 * Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its @@ -36,6 +36,18 @@ extern void load_random_image (Screen *screen, Drawable target_window_or_pixmap, char **filename_return); +/* Like the above, but loads the image in the background and runs the + given callback once it has been loaded. + */ +extern void fork_load_random_image (Screen *screen, Window window, + Drawable drawable, + void (*callback) (Screen *, Window, + Drawable, + const char *name, + void *closure), + void *closure); + + /* Whether one should use GCSubwindowMode when drawing on this window (assuming a screen image has been grabbed onto it.) Yes, this is a total kludge. */