X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ftruchet.c;h=f21e559966cce3da67d434947e2533320ec7d2d8;hp=b23b081de89f040add001cad7cbb290ed6600bb2;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/truchet.c b/hacks/truchet.c index b23b081d..f21e5599 100644 --- a/hacks/truchet.c +++ b/hacks/truchet.c @@ -508,6 +508,10 @@ static void truchet_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->width = w; + st->height = h; + XGetWindowAttributes (st->dpy, st->window, &st->xgwa); } static Bool