forked from AuroraMiddleware/gtk
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:
parent
ce6227840d
commit
40321d331f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user