From 3cd59126ec2d341ae4514372de0f43db61c5a4b8 Mon Sep 17 00:00:00 2001 From: zeljko Date: Thu, 29 Mar 2012 07:13:11 +0000 Subject: [PATCH] Gtk2: allow changing state to maximized if we are iconified or fullscreen git-svn-id: trunk@36410 - --- lcl/interfaces/gtk2/gtk2winapi.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lcl/interfaces/gtk2/gtk2winapi.inc b/lcl/interfaces/gtk2/gtk2winapi.inc index 625979026e..d922ca5246 100644 --- a/lcl/interfaces/gtk2/gtk2winapi.inc +++ b/lcl/interfaces/gtk2/gtk2winapi.inc @@ -9492,7 +9492,11 @@ begin if B then gtk_widget_show(PGtkWidget(GtkWindow)) else + begin + gtk_window_deiconify(GtkWindow); + gtk_window_unfullscreen(GtkWindow); gtk_window_maximize(GtkWindow); + end; SW_SHOWFULLSCREEN: if B then