Merge pull request #497 from Pan7/deiconify

Use gtk_window_deiconify for Sys_Restore
This commit is contained in:
Timothee "TTimo" Besset 2017-05-21 09:59:52 -05:00 committed by GitHub
commit c521b127b7

View file

@ -27,9 +27,6 @@
#include "stdafx.h"
#ifdef _WIN32
extern "C" {
#include <gdk/gdkwin32.h>
}
#endif
#include <gtk/gtk.h>
#include <glib/gi18n.h>
@ -3095,26 +3092,7 @@ static void Sys_Restore( GtkWidget *w ){
return;
}
#if defined ( __linux__ ) || defined ( __APPLE__ )
Sys_FPrintf( SYS_WRN, "FIXME: Sys_Restore\n" );
#if 0
XWindowAttributes xattr;
GdkWindowPrivate *Private;
Private = (GdkWindowPrivate*)gtk_widget_get_window( w );
xattr.map_state = IsUnmapped;
XGetWindowAttributes( Private->xdisplay, Private->xwindow, &xattr );
if ( xattr.map_state == IsUnmapped ) {
XMapRaised( Private->xdisplay, Private->xwindow );
}
#endif
#endif
#ifdef _WIN32
ShowWindow( (HWND)GDK_WINDOW_HWND( gtk_widget_get_window( w ) ), SW_RESTORE );
#endif
gtk_window_deiconify( GTK_WINDOW( w ) );
}
#ifdef _DEBUG