1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 17:22:18 -05:00

Make manual reposition after unfullscreen Windows only

This commit is contained in:
TingPing 2013-09-19 22:01:15 -04:00
parent 267ac71d4f
commit 36911710fd

View File

@ -899,11 +899,13 @@ menu_fullscreen_toggle (GtkWidget *wid, gpointer ud)
{ {
gtk_window_unfullscreen (GTK_WINDOW(parent_window)); gtk_window_unfullscreen (GTK_WINDOW(parent_window));
/* At least on Windows we need to manually reposition the window */ #ifdef WIN32
/* 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
} }
} }