summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@fedoraproject.org>2014-05-30 04:26:34 -0400
committerTingPing <tingping@fedoraproject.org>2014-05-30 04:26:34 -0400
commite13e0f4314cc55fed7cf1be63e71960ec6dc842b (patch)
tree1dadba4b026ffb0fdd1afda41be447b3387e1a10
parent31843017d40dfb875f796df97e26ca189d28edfb (diff)
win32: Fix exiting fullscreen to a maximized window
-rw-r--r--src/fe-gtk/menu.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/fe-gtk/menu.c b/src/fe-gtk/menu.c
index f9c41da2..39c0ad5a 100644
--- a/src/fe-gtk/menu.c
+++ b/src/fe-gtk/menu.c
@@ -906,11 +906,14 @@ menu_fullscreen_toggle (GtkWidget *wid, gpointer ud)
 		gtk_window_unfullscreen (GTK_WINDOW(parent_window));
 
 #ifdef WIN32
-		/* other window managers seem to handle this */
-		gtk_window_resize (GTK_WINDOW(parent_window),
-					prefs.hex_gui_win_width, prefs.hex_gui_win_height);
-		gtk_window_move (GTK_WINDOW(parent_window),
-					prefs.hex_gui_win_left, prefs.hex_gui_win_top);
+		if (!prefs.hex_gui_win_state) /* not maximized */
+		{
+			/* other window managers seem to handle this */
+			gtk_window_resize (GTK_WINDOW (parent_window),
+				prefs.hex_gui_win_width, prefs.hex_gui_win_height);
+			gtk_window_move (GTK_WINDOW (parent_window),
+				prefs.hex_gui_win_left, prefs.hex_gui_win_top);
+		}
 #endif
 	}
 }