Check if the window is a temp window, otherwise things get wonky when you

2008-02-06  Cody Russell  <bratsche@gnome.org>

        * gdk/win32/gdkevents-win32.c: Check if the window is a temp window,
        otherwise things get wonky when you click on a menu.  This fixes
        a regression caused in #505928.  Thanks to Tor for spotting this
        one!  (#514789)


svn path=/trunk/; revision=19482
This commit is contained in:
Cody Russell 2008-02-06 16:32:41 +00:00 committed by Cody Russell
parent e7355f82c2
commit 84dd6a99b8
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-02-06 Cody Russell <bratsche@gnome.org>
* gdk/win32/gdkevents-win32.c: Check if the window is a temp window,
otherwise things get wonky when you click on a menu. This fixes
a regression caused in #505928. Thanks to Tor for spotting this
one! (#514789)
2008-02-06 Michael Natterer <mitch@imendio.com> 2008-02-06 Michael Natterer <mitch@imendio.com>
* gtk/gtkcontainer.c * gtk/gtkcontainer.c

View File

@ -2988,7 +2988,11 @@ gdk_event_translate (MSG *msg,
GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_MAXIMIZED |
withdrawn_bit, withdrawn_bit,
0); 0);
show_window_internal (window, FALSE);
if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_TEMP)
{
show_window_internal (window, FALSE);
}
} }
else if (msg->wParam == SIZE_MAXIMIZED) else if (msg->wParam == SIZE_MAXIMIZED)
{ {