From 983466ab2643579135ec6b14102ba1c95c336678 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 19 Feb 2013 19:14:00 +0100 Subject: [PATCH] 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). --- gtk/xoptions.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; } -- 1.7.0.4