summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-09-02 17:29:38 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-09-02 17:29:38 +0000
commit92b1967c1293bb09d40dd879b1d46bbfde9c9c2d (patch)
tree09362c51a1f1b86c73562f4121d79a308a84416b /gtk/gtkmain.c
parent9846428b252a906e554acf9adc1cd53c12485044 (diff)
downloadgtk+-92b1967c1293bb09d40dd879b1d46bbfde9c9c2d.tar.gz
If the window is destroyed, we still need to deliver the destroy event.
2005-09-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmain.c (gtk_get_event_widget): If the window is destroyed, we still need to deliver the destroy event. (#314980, Chris Lahey)
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index bb0eecaaeb..56f3c986f8 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -2044,7 +2044,7 @@ gtk_get_event_widget (GdkEvent *event)
widget = NULL;
if (event && event->any.window &&
- !GDK_WINDOW_DESTROYED (event->any.window))
+ (event->type == GDK_DESTROY || !GDK_WINDOW_DESTROYED (event->any.window)))
gdk_window_get_user_data (event->any.window, (void**) &widget);
return widget;