projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce62278
)
x11: Remove useless check
author
Benjamin Otte
<otte@redhat.com>
Wed, 6 Jun 2018 03:33:30 +0000
(
05:33
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 10 Jun 2018 00:33:53 +0000
(
02:33
+0200)
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
*/
gdk/x11/gdkeventsource.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkeventsource.c
b/gdk/x11/gdkeventsource.c
index f5c68a57282d4617da0589241238ae603d901098..6faecd7391914f86937f18e46b40e20d5f1d2e71 100644
(file)
--- 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;
}