mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
1df38871e1
commit
5a997f0f37
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user