X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ftruchet.c;h=cb5391348b475e0a8ba8509331cbce218c4168fe;hp=66cec3db7f4c69b1e8f19eb5107b8e95d764c1a4;hb=f65151994eba80ecabcdac6eef6fa0dde7e2d45b;hpb=8e0f39b4a12b9a908af2b3b175ebe87c14b4a6ab diff --git a/hacks/truchet.c b/hacks/truchet.c index 66cec3db..cb539134 100644 --- a/hacks/truchet.c +++ b/hacks/truchet.c @@ -458,8 +458,10 @@ void screenhack(Display *disp, Window win) delay = 0; } else - XSync(disp,True); + XSync(disp, False); + screenhack_handle_events (disp); + /* the delay to try to minimize seizures */ usleep((delay*1000)); count++; @@ -488,7 +490,7 @@ static void scroll_area(Display *disp, Window win, int delay, int step_size) while(scrollcount_x <= scroll) { XCopyArea(disp, frame, win, agc,scrollcount_x+offset,scrollcount_y+offset, xgwa.width, xgwa.height, 0,0); - XSync(disp,True); + XSync(disp, False); scrollcount_x=scrollcount_x+step_size; scrollcount_y=scrollcount_y+step_size; usleep(1000*delay); @@ -496,7 +498,7 @@ static void scroll_area(Display *disp, Window win, int delay, int step_size) while(scrollcount_x >= 0) { XCopyArea(disp, frame, win, agc,scrollcount_x+offset,scrollcount_y+offset, xgwa.width, xgwa.height, 0,0); - XSync(disp,True); + XSync(disp, False); scrollcount_y=scrollcount_y+step_size; scrollcount_x=scrollcount_x-step_size; usleep(1000*delay); @@ -504,7 +506,7 @@ static void scroll_area(Display *disp, Window win, int delay, int step_size) while(scrollcount_y >= scroll) { XCopyArea(disp, frame, win, agc,scrollcount_x+offset,scrollcount_y+offset, xgwa.width, xgwa.height, 0,0); - XSync(disp,True); + XSync(disp, False); scrollcount_x=scrollcount_x-step_size; scrollcount_y=scrollcount_y-step_size; usleep(1000*delay); @@ -512,13 +514,13 @@ static void scroll_area(Display *disp, Window win, int delay, int step_size) while(scrollcount_y > 0) { XCopyArea(disp, frame, win, agc,scrollcount_x+offset,scrollcount_y+offset, xgwa.width, xgwa.height, 0,0); - XSync(disp,True); + XSync(disp, False); scrollcount_y=scrollcount_y-step_size; scrollcount_x=scrollcount_x+step_size; usleep(1000*delay); } - XSync(disp,True); + XSync(disp, False); scrollcount_x=0; scrollcount_y=0;