From 8c69ee822007f5a96611b9d7e9dd0a13caaf8332 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 23 Mar 2016 11:07:43 +0100 Subject: [PATCH] Improve behavior of secondary board on sizing main window Resizing the main window now immediately orders corresponding resizing of the secondary board window, plus an immediate redraw, rather than waiting for a move to occur on that board. --- gtk/xboard.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/gtk/xboard.c b/gtk/xboard.c index 783b440..5e2314a 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1697,6 +1697,12 @@ ReSize (WindowPlacement *wp) if(optList[W_BOARD].max > w) optList[W_BOARD].max = w; if(optList[W_BOARD].value > h) optList[W_BOARD].value = h; first = appData.fixedSize; + if(twoBoards && shellUp[DummyDlg]) { + SlavePopUp(); dualOptions[3].max = 0; DoEvents(); // calls SlaveResize, kludge to force assigning new canvas + partnerUp = !partnerUp; flipView = !flipView; + DrawPosition(True, NULL); + partnerUp = !partnerUp; flipView = !flipView; + } } static guint delayedDragTag = 0; -- 1.7.0.4