From: H.G. Muller Date: Sat, 19 Jan 2013 16:54:59 +0000 (+0100) Subject: Do delayed board draw also with -stickyWindows false X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=837c38c974b1c86c26a5bb1499d4fa72f0c25c41;p=xboard.git Do delayed board draw also with -stickyWindows false Only CoDrag needs to be suppressed on a configure event with -stickyWindows false, not the board redraw. --- diff --git a/gtk/xboard.c b/gtk/xboard.c index 0837911..c52a080 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1492,10 +1492,12 @@ DragProc () busy = 0; return; // false alarm } ReSize(&wpNew); - if(shellUp[EngOutDlg]) CoDrag(shells[EngOutDlg], &wpEngineOutput); - if(shellUp[HistoryDlg]) CoDrag(shells[HistoryDlg], &wpMoveHistory); - if(shellUp[EvalGraphDlg]) CoDrag(shells[EvalGraphDlg], &wpEvalGraph); - if(shellUp[GameListDlg]) CoDrag(shells[GameListDlg], &wpGameList); + if(appData.useStickyWindows) { + if(shellUp[EngOutDlg]) CoDrag(shells[EngOutDlg], &wpEngineOutput); + if(shellUp[HistoryDlg]) CoDrag(shells[HistoryDlg], &wpMoveHistory); + if(shellUp[EvalGraphDlg]) CoDrag(shells[EvalGraphDlg], &wpEvalGraph); + if(shellUp[GameListDlg]) CoDrag(shells[GameListDlg], &wpGameList); + } wpMain = wpNew; DrawPosition(True, NULL); if(delayedDragTag) g_source_remove(delayedDragTag); @@ -1521,8 +1523,7 @@ EventProc (GtkWidget *widget, GdkEvent *event, gpointer g) wpNew.y = event->configure.y; wpNew.width = event->configure.width; wpNew.height = event->configure.height; - if(appData.useStickyWindows) - DelayedDrag(); // as long as events keep coming in faster than 50 msec, they destroy each other + DelayedDrag(); // as long as events keep coming in faster than 50 msec, they destroy each other return FALSE; }