Issue #4119: GIMP main window not restored from Taskbar under MS Windows
Tested in a VM. Minimized window is properly deiconified and showed to
the front. Though a window in the back (not minimized) is not moved to
the front.
(cherry picked from commit 2f01751907
)
This commit is contained in:
@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
#include "display/gimpdisplay.h"
|
#include "display/gimpdisplay.h"
|
||||||
#include "display/gimpdisplayshell.h"
|
#include "display/gimpdisplayshell.h"
|
||||||
|
#include "display/gimpimagewindow.h"
|
||||||
|
|
||||||
#include "file/file-open.h"
|
#include "file/file-open.h"
|
||||||
|
|
||||||
@ -166,6 +167,7 @@ gui_unique_win32_message_handler (HWND hWnd,
|
|||||||
if (unique_gimp)
|
if (unique_gimp)
|
||||||
{
|
{
|
||||||
COPYDATASTRUCT *copydata = (COPYDATASTRUCT *) lParam;
|
COPYDATASTRUCT *copydata = (COPYDATASTRUCT *) lParam;
|
||||||
|
GimpObject *display;
|
||||||
|
|
||||||
if (copydata->cbData > 0)
|
if (copydata->cbData > 0)
|
||||||
{
|
{
|
||||||
@ -193,6 +195,11 @@ gui_unique_win32_message_handler (HWND hWnd,
|
|||||||
g_source_attach (source, NULL);
|
g_source_attach (source, NULL);
|
||||||
g_source_unref (source);
|
g_source_unref (source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Deiconify the window if minimized. */
|
||||||
|
display = gimp_container_get_first_child (unique_gimp->displays);
|
||||||
|
if (display)
|
||||||
|
gimp_display_shell_present (gimp_display_get_shell (GIMP_DISPLAY (display)));
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user