Don't warn about unexpected events on foreign windows
We don't really control these events so its not wrong per se to have them generate stuff we don't expect.
This commit is contained in:
committed by
Alexander Larsson
parent
bfd29e62b5
commit
089c9ca2f1
@@ -8504,6 +8504,9 @@ _gdk_windowing_got_event (GdkDisplay *display,
|
||||
GDK_WINDOW_TYPE (event_private->parent) != GDK_WINDOW_ROOT)
|
||||
{
|
||||
GEnumValue *event_type_value, *window_type_value;
|
||||
|
||||
if (GDK_WINDOW_TYPE (event_private) == GDK_WINDOW_FOREIGN)
|
||||
return;
|
||||
|
||||
event_type_value = g_enum_get_value ((GEnumClass *) g_type_class_ref (GDK_TYPE_EVENT_TYPE),
|
||||
event->type);
|
||||
|
||||
Reference in New Issue
Block a user