From 50af49319ad07682cd15913d264cb4a9570e1f8c Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Sun, 13 May 2007 18:44:27 +0000 Subject: [PATCH] Fix context iterations for handle_configure_event() svn path=/trunk/; revision=17834 --- ChangeLog | 7 +++++++ gdk/win32/gdkevents-win32.c | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c2514cb70..20adee37ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-13 Cody Russell + + * gdk/win32/gdkevents-win32.c: Only do the configure event context + iteration under WM_WINDOWPOSCHANGED instead of inside + handle_configure_event(). This fixes a bug that prevented window + contents from being redrawn after gtk_window_resize(). (#436721) + 2007-05-12 Behdad Esfahbod * gdk/gdkdraw.c (gdk_draw_trapezoids): Fix wrong cairo path diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 1da4971d6d..285b736ceb 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -1778,8 +1778,6 @@ handle_configure_event (MSG *msg, append_event (event); } - - g_main_context_iteration (NULL, FALSE); } GdkRegion * @@ -2907,7 +2905,8 @@ gdk_event_translate (MSG *msg, ((GdkWindowObject *) window)->resize_count -= 1; handle_configure_event (msg, window); - + g_main_context_iteration (NULL, FALSE); + /* Dispatch main loop - to realize resizes... */ handle_stuff_while_moving_or_resizing ();