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

@ -143,16 +143,19 @@ generate_grab_broken_event (GdkWindow *window,
gboolean implicit,
GdkWindow *grab_window)
{
GdkEvent event;
if (!GDK_WINDOW_DESTROYED (window))
{
GdkEvent event;
event.type = GDK_GRAB_BROKEN;
event.grab_broken.window = window;
event.grab_broken.send_event = 0;
event.grab_broken.keyboard = keyboard;
event.grab_broken.implicit = implicit;
event.grab_broken.grab_window = grab_window;
gdk_event_put (&event);
event.type = GDK_GRAB_BROKEN;
event.grab_broken.window = window;
event.grab_broken.send_event = 0;
event.grab_broken.keyboard = keyboard;
event.grab_broken.implicit = implicit;
event.grab_broken.grab_window = grab_window;
gdk_event_put (&event);
}
}
/*