From 8a453924a07649cdbebfd841e00044381ecc0764 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 13 Dec 2017 00:35:16 +0100 Subject: gdk: Remove gdk_event_put(), peek() etc We don't want to treat events like they don't belong to displays. So instead, people should use gdk_display_put/peek/get_event(). --- gdk/x11/gdkeventsource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdk/x11/gdkeventsource.c') diff --git a/gdk/x11/gdkeventsource.c b/gdk/x11/gdkeventsource.c index cb1f811c9a..cbd5c17b03 100644 --- a/gdk/x11/gdkeventsource.c +++ b/gdk/x11/gdkeventsource.c @@ -164,7 +164,7 @@ handle_focus_change (GdkEventCrossing *event) focus_event->focus_change.in = focus_in; gdk_event_set_device (focus_event, gdk_event_get_device ((GdkEvent *) event)); - gdk_event_put (focus_event); + gdk_display_put_event (gdk_window_get_display (event->window), focus_event); gdk_event_free (focus_event); } } @@ -258,7 +258,7 @@ handle_touch_synthetic_crossing (GdkEvent *event) if (crossing) { - gdk_event_put (crossing); + gdk_display_put_event (gdk_device_get_display (device), crossing); gdk_event_free (crossing); } } -- cgit v1.2.1