summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Russell <bratsche@src.gnome.org>2007-05-13 18:44:27 +0000
committerCody Russell <bratsche@src.gnome.org>2007-05-13 18:44:27 +0000
commit50af49319ad07682cd15913d264cb4a9570e1f8c (patch)
tree6eae49d16c0f416c0ff74e7e7a8572d84d8f65c2
parent16128450316e416b70c4d9187130f9a543633479 (diff)
downloadgtk+-50af49319ad07682cd15913d264cb4a9570e1f8c.tar.gz
Fix context iterations for handle_configure_event()
svn path=/trunk/; revision=17834
-rw-r--r--ChangeLog7
-rw-r--r--gdk/win32/gdkevents-win32.c5
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 <bratsche@gnome.org>
+
+ * 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 <behdad@gnome.org>
* 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 ();