From 59d3fa47a5e5247b7af1dd2559193126b367d8ad Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 16 Dec 2012 12:54:15 -0500 Subject: fix restoring previously maximized window from tray --- src/fe-gtk/plugin-tray.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/fe-gtk/plugin-tray.c') diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c index 07207a99..e77bf95c 100644 --- a/src/fe-gtk/plugin-tray.c +++ b/src/fe-gtk/plugin-tray.c @@ -372,6 +372,7 @@ tray_toggle_visibility (gboolean force_hide) { static int x, y; static GdkScreen *screen; + static int maximized; GtkWindow *win; if (!sticon) @@ -396,14 +397,18 @@ tray_toggle_visibility (gboolean force_hide) { gtk_window_get_position (win, &x, &y); screen = gtk_window_get_screen (win); + maximized = prefs.hex_gui_win_state; gtk_widget_hide (GTK_WIDGET (win)); } else { gtk_window_set_screen (win, screen); gtk_window_move (win, x, y); + if (maximized) + gtk_window_maximize (win); gtk_widget_show (GTK_WIDGET (win)); gtk_window_present (win); + } return TRUE; -- cgit 1.4.1 From 52ffb02685d922696497e17f22fd15b3dc5b3916 Mon Sep 17 00:00:00 2001 From: TingPing Date: Thu, 20 Dec 2012 13:30:48 -0500 Subject: Update src/fe-gtk/plugin-tray.c --- src/fe-gtk/plugin-tray.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/fe-gtk/plugin-tray.c') diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c index e77bf95c..294920da 100644 --- a/src/fe-gtk/plugin-tray.c +++ b/src/fe-gtk/plugin-tray.c @@ -408,7 +408,6 @@ tray_toggle_visibility (gboolean force_hide) gtk_window_maximize (win); gtk_widget_show (GTK_WIDGET (win)); gtk_window_present (win); - } return TRUE; -- cgit 1.4.1