From ee187f36388670ebf4e2666c8118d7344d670ed9 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 13 Oct 2012 07:18:23 +0200 Subject: [PATCH] Increase drag delay too 200 msec On my slow laptop it can take more than 100 msec to reallocate bitmaps in the generic expose, with as a consequence that the DelayedDrag event is not processed before the timeout expires. The timeout event then triggers a redraw, which again takes so long that the timeout expires before the event to reset the timer could be processed, and this just perpetuates itself, leading to a large series of queued redraws, and a long waiting time for an image to appear after the sizing stops. --- xboard.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xboard.c b/xboard.c index ede493d..62b696b 100644 --- a/xboard.c +++ b/xboard.c @@ -1775,7 +1775,7 @@ DelayedDrag () { if(delayedDragID) XtRemoveTimeOut(delayedDragID); // cancel pending delayedDragID = - XtAppAddTimeOut(appContext, 100, (XtTimerCallbackProc) DragProc, (XtPointer) 0); // and schedule new one 50 msec later + XtAppAddTimeOut(appContext, 200, (XtTimerCallbackProc) DragProc, (XtPointer) 0); // and schedule new one 50 msec later } void -- 1.7.0.4