Do delayed board draw also with -stickyWindows false
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 19 Jan 2013 16:54:59 +0000 (17:54 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 19 Jan 2013 22:28:20 +0000 (23:28 +0100)
Only CoDrag needs to be suppressed on a configure event with
-stickyWindows false, not the board redraw.

gtk/xboard.c

index 0837911..c52a080 100644 (file)
@@ -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;
 }