win32: Fix exiting fullscreen to a maximized window

This commit is contained in:
TingPing 2014-05-30 04:26:34 -04:00
parent 31843017d4
commit e13e0f4314

View File

@ -906,11 +906,14 @@ menu_fullscreen_toggle (GtkWidget *wid, gpointer ud)
gtk_window_unfullscreen (GTK_WINDOW(parent_window)); gtk_window_unfullscreen (GTK_WINDOW(parent_window));
#ifdef WIN32 #ifdef WIN32
if (!prefs.hex_gui_win_state) /* not maximized */
{
/* other window managers seem to handle this */ /* other window managers seem to handle this */
gtk_window_resize (GTK_WINDOW(parent_window), gtk_window_resize (GTK_WINDOW (parent_window),
prefs.hex_gui_win_width, prefs.hex_gui_win_height); prefs.hex_gui_win_width, prefs.hex_gui_win_height);
gtk_window_move (GTK_WINDOW(parent_window), gtk_window_move (GTK_WINDOW (parent_window),
prefs.hex_gui_win_left, prefs.hex_gui_win_top); prefs.hex_gui_win_left, prefs.hex_gui_win_top);
}
#endif #endif
} }
} }