x11: Don't use g_object_unref on events
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 18:28:36 +0000 (14:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 18:28:36 +0000 (14:28 -0400)
Events are not object anymore.

gdk/x11/gdkeventsource.c

index da9ac289791b0a50b88a459bda3357997f6dbcf0..3e4523077f8a9ff0696a317dc5da267a30efab3d 100644 (file)
@@ -120,7 +120,7 @@ handle_focus_change (GdkEvent *event)
                                          gdk_event_get_source_device (event),
                                          focus_in);
       gdk_display_put_event (gdk_event_get_display (event), focus_event);
-      g_object_unref (focus_event);
+      gdk_event_unref (focus_event);
     }
 }
 
@@ -209,7 +209,7 @@ handle_touch_synthetic_crossing (GdkEvent *event)
   if (crossing)
     {
       gdk_display_put_event (gdk_device_get_display (device), crossing);
-      g_object_unref (crossing);
+      gdk_event_unref (crossing);
     }
 }