Bug 575700 - Crash when moving a GtkWindow
2009-03-17 Tor Lillqvist <tml@novell.com> Bug 575700 - Crash when moving a GtkWindow * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix embarrassing crasher bug introduced on 2009-03-11. A variable was assigned a value only inside a GDK_NOTE but still used outside that. svn path=/trunk/; revision=22568
This commit is contained in:
committed by
Tor Lillqvist
parent
25deb501ad
commit
c3879d400c
@ -3253,16 +3253,16 @@ gdk_event_translate (MSG *msg,
|
||||
break;
|
||||
|
||||
case WM_WINDOWPOSCHANGED:
|
||||
GDK_NOTE (EVENTS, (windowpos = (WINDOWPOS *) msg->lParam,
|
||||
g_print (" %s %s %dx%d@%+d%+d",
|
||||
_gdk_win32_window_pos_bits_to_string (windowpos->flags),
|
||||
(windowpos->hwndInsertAfter == HWND_BOTTOM ? "BOTTOM" :
|
||||
(windowpos->hwndInsertAfter == HWND_NOTOPMOST ? "NOTOPMOST" :
|
||||
(windowpos->hwndInsertAfter == HWND_TOP ? "TOP" :
|
||||
(windowpos->hwndInsertAfter == HWND_TOPMOST ? "TOPMOST" :
|
||||
(sprintf (buf, "%p", windowpos->hwndInsertAfter),
|
||||
buf))))),
|
||||
windowpos->cx, windowpos->cy, windowpos->x, windowpos->y)));
|
||||
windowpos = (WINDOWPOS *) msg->lParam;
|
||||
GDK_NOTE (EVENTS, g_print (" %s %s %dx%d@%+d%+d",
|
||||
_gdk_win32_window_pos_bits_to_string (windowpos->flags),
|
||||
(windowpos->hwndInsertAfter == HWND_BOTTOM ? "BOTTOM" :
|
||||
(windowpos->hwndInsertAfter == HWND_NOTOPMOST ? "NOTOPMOST" :
|
||||
(windowpos->hwndInsertAfter == HWND_TOP ? "TOP" :
|
||||
(windowpos->hwndInsertAfter == HWND_TOPMOST ? "TOPMOST" :
|
||||
(sprintf (buf, "%p", windowpos->hwndInsertAfter),
|
||||
buf))))),
|
||||
windowpos->cx, windowpos->cy, windowpos->x, windowpos->y));
|
||||
|
||||
/* If position and size haven't changed, don't do anything */
|
||||
if (_sizemove_in_progress &&
|
||||
|
||||
Reference in New Issue
Block a user