Don't generate events on destroyed windows.

2005-07-07  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
	generate events on destroyed windows.
This commit is contained in:
Matthias Clasen 2005-07-07 19:05:33 +00:00 committed by Matthias Clasen
parent 1df38871e1
commit 5a997f0f37
4 changed files with 21 additions and 9 deletions

View File

@ -1,5 +1,8 @@
2005-07-07 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
generate events on destroyed windows.
Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
* gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)

View File

@ -1,5 +1,8 @@
2005-07-07 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
generate events on destroyed windows.
Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
* gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)

View File

@ -1,5 +1,8 @@
2005-07-07 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkmain-x11.c (generate_grab_broken_event): Don't
generate events on destroyed windows.
Implement Drag-and-Drop to the file list. (#145121, Sven Neumann)
* gtk/gtkfilechooserdefault.c (file_list_drag_data_received_cb)

View File

@ -142,6 +142,8 @@ generate_grab_broken_event (GdkWindow *window,
gboolean keyboard,
gboolean implicit,
GdkWindow *grab_window)
{
if (!GDK_WINDOW_DESTROYED (window))
{
GdkEvent event;
@ -154,6 +156,7 @@ generate_grab_broken_event (GdkWindow *window,
gdk_event_put (&event);
}
}
/*
*--------------------------------------------------------------