forked from AuroraMiddleware/gtk
Stop exporting check_event_sanity
This commit is contained in:
parent
0c96b2d8f7
commit
4947b94a41
@ -68,29 +68,23 @@ G_DEFINE_BOXED_TYPE (GdkEvent, gdk_event,
|
||||
gdk_event_ref,
|
||||
gdk_event_unref)
|
||||
|
||||
gboolean
|
||||
static gboolean
|
||||
check_event_sanity (GdkEvent *event)
|
||||
{
|
||||
GdkDisplay *display;
|
||||
GdkSurface *surface;
|
||||
GdkDevice *device;
|
||||
|
||||
display = gdk_event_get_display (event);
|
||||
surface = gdk_event_get_surface (event);
|
||||
device = gdk_event_get_device (event);
|
||||
|
||||
if (surface && display != gdk_surface_get_display (surface))
|
||||
if (event->any.device != NULL &&
|
||||
gdk_surface_get_display (event->any.surface) != gdk_device_get_display (event->any.device))
|
||||
{
|
||||
char *type = g_enum_to_string (GDK_TYPE_EVENT_TYPE, event->any.type);
|
||||
g_warning ("Event of type %s with mismatched surface display", type);
|
||||
g_warning ("Event of type %s with mismatched device display", type);
|
||||
g_free (type);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (device && display != gdk_device_get_display (device))
|
||||
if (event->any.source_device != NULL &&
|
||||
gdk_surface_get_display (event->any.surface) != gdk_device_get_display (event->any.source_device))
|
||||
{
|
||||
char *type = g_enum_to_string (GDK_TYPE_EVENT_TYPE, event->any.type);
|
||||
g_warning ("Event of type %s with mismatched device display", type);
|
||||
g_warning ("Event of type %s with mismatched source device display", type);
|
||||
g_free (type);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -534,8 +534,6 @@ union _GdkEvent
|
||||
GdkEventPadGroupMode pad_group_mode;
|
||||
};
|
||||
|
||||
gboolean check_event_sanity (GdkEvent *event);
|
||||
|
||||
GdkEvent * gdk_event_button_new (GdkEventType type,
|
||||
GdkSurface *surface,
|
||||
GdkDevice *device,
|
||||
|
@ -170,9 +170,6 @@ _gdk_wayland_display_deliver_event (GdkDisplay *display,
|
||||
{
|
||||
GList *node;
|
||||
|
||||
if (!check_event_sanity (event))
|
||||
g_warning ("Snap! delivering insane events\n");
|
||||
|
||||
node = _gdk_event_queue_append (display, event);
|
||||
_gdk_windowing_got_event (display, node, event,
|
||||
_gdk_display_get_next_serial (display));
|
||||
|
Loading…
Reference in New Issue
Block a user