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
   */
This commit is contained in:
Benjamin Otte 2018-06-06 05:33:30 +02:00
parent ce6227840d
commit 40321d331f

View File

@ -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;
}