X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fgrabclient.c;h=fc002012d05d3c111c0cac17e6de14c9c244f201;hp=a1a360e476d8dbc23dc5b866250a325da96cc7fb;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/utils/grabclient.c b/utils/grabclient.c index a1a360e4..fc002012 100644 --- a/utils/grabclient.c +++ b/utils/grabclient.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2016 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2017 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -783,7 +783,12 @@ osx_load_image_file_async (Screen *screen, Window xwindow, Drawable drawable, (XtPointer) (XtInputReadMask | XtInputExceptMask), xscreensaver_getimage_file_cb, (XtPointer) clo2); # else /* USE_IPHONE */ - ios_load_random_image (ios_load_random_image_cb, clo2); + { + XWindowAttributes xgwa; + XGetWindowAttributes (DisplayOfScreen (screen), xwindow, &xgwa); + ios_load_random_image (ios_load_random_image_cb, clo2, + xgwa.width, xgwa.height); + } # endif /* USE_IPHONE */ }