From: Benjamin Otte Date: Wed, 6 Jun 2018 03:33:30 +0000 (+0200) Subject: x11: Remove useless check X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~191 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=40321d331fca7b101b16df29d152ae157904e7e9;p=gtk4.git x11: Remove useless check The check survived from GTK2 when that function could still return GdkPixmap and GdkFont objects and was accompanied by this comment: /* We may receive events such as NoExpose/GraphicsExpose * and ShmCompletion for pixmaps */ --- diff --git a/gdk/x11/gdkeventsource.c b/gdk/x11/gdkeventsource.c index f5c68a5728..6faecd7391 100644 --- a/gdk/x11/gdkeventsource.c +++ b/gdk/x11/gdkeventsource.c @@ -83,9 +83,6 @@ gdk_event_source_get_filter_surface (GdkEventSource *event_source, surface = gdk_x11_surface_lookup_for_display (event_source->display, xevent->xany.window); - if (surface && !GDK_IS_SURFACE (surface)) - surface = NULL; - return surface; }