http://ftp.x.org/contrib/applications/xscreensaver-3.06.tar.gz
[xscreensaver] / hacks / kumppa.c
index 96db47c361d285d4c4d0d6f91374cb62c0dea217..bcc137af3d10110c6923a3f50495b84df6dd73e6 100644 (file)
@@ -186,7 +186,7 @@ if (stateY==rotsizeY) stateY=0;
 
 Bool make_rots(double xspeed,double yspeed)
 {
-int a,b,c,f,g,j,k,l;
+int a,b,c,f,g,j,k=0,l;
 double m,om,ok;
 double d,ix,iy;
 int maxi;
@@ -474,7 +474,7 @@ void screenhack(Display *d, Window w)
 #ifdef HAVE_XDBE_EXTENSION
 XdbeSwapInfo xdswp;
 #endif /* HAVE_XDBE_EXTENSION */
-int a,b,c,e;
+int a,b,c=0,e;
 float f;
 
 dpy=d;
@@ -529,7 +529,8 @@ while (0==0)
 #ifdef HAVE_XDBE_EXTENSION
        if (usedouble) XdbeSwapBuffers(dpy,&xdswp,1);
 #endif /* HAVE_XDBE_EXTENSION */
-       XSync(dpy,True);
+       XSync(dpy, False);
+        screenhack_handle_events (dpy);
        if (delay) usleep (delay);
        }
 }