[gtk/readonly-events-1: 91/149] x11: Don't generate GDK_DESTROY events



commit 047c18844c96a3c9ead0f5fa8a48d3652e043fbf
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 15 11:12:22 2020 -0500

    x11: Don't generate GDK_DESTROY events
    
    GTK does not differentiate between GDK_DESTROY and GDK_DELETE
    anyway.

 gdk/x11/gdkdisplay-x11.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index 1440eab426..342c1b2afb 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -831,7 +831,8 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator,
 
       if (!is_substructure)
        {
-         event->any.type = GDK_DESTROY;
+          /* handle destroy like delete */
+         event->any.type = GDK_DELETE;
          event->any.surface = surface;
 
          return_val = surface && !GDK_SURFACE_DESTROYED (surface);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]