[gtk+/client-side-windows: 203/284] Don't warn about unexpected events on foreign windows
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 203/284] Don't warn about unexpected events on foreign windows
- Date: Thu, 2 Apr 2009 14:16:59 -0400 (EDT)
commit 089c9ca2f195db29c6f45a65844094ddc50fd39e
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jan 29 14:30:48 2009 +0100
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.
---
gdk/gdkwindow.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 375ac1e..102fc90 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]