From 837c38c974b1c86c26a5bb1499d4fa72f0c25c41 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 19 Jan 2013 17:54:59 +0100 Subject: [PATCH] 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. --- gtk/xboard.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) 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; } -- 1.7.0.4