From: H.G. Muller Date: Tue, 19 Feb 2013 18:14:00 +0000 (+0100) Subject: Fix repositioning of GTK windows X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=983466ab2643579135ec6b14102ba1c95c336678;p=xboard.git Fix repositioning of GTK windows After 'hide' and 'show' GTK would not position the window in the same place, but center it on the parent. Now we reposition the window after 'show' based on the WindowPlacement data (if available). --- diff --git a/gtk/xoptions.c b/gtk/xoptions.c index 607aae2..fae7d9f 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -1105,6 +1105,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent if(dlgNr && dlgNr < PromoDlg && shells[dlgNr]) { // reusable, and used before (but popped down) gtk_widget_show(shells[dlgNr]); shellUp[dlgNr] = True; + if(wp[dlgNr]) gtk_window_move(GTK_WINDOW(shells[dlgNr]), wp[dlgNr]->x, wp[dlgNr]->y); return 0; }