From: H.G.Muller Date: Wed, 23 Mar 2016 10:07:43 +0000 (+0100) Subject: Improve behavior of secondary board on sizing main window X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8c69ee822007f5a96611b9d7e9dd0a13caaf8332;p=xboard.git 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. --- 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;