[gtk+/gtk-2-24-quartz] win32: Record the native event mask in use
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24-quartz] win32: Record the native event mask in use
- Date: Wed, 23 Nov 2011 22:58:11 +0000 (UTC)
commit c94d83c839f1594ff2656f34d82044a4a84005e4
Author: Alexander Larsson <alexl redhat com>
Date: Wed Oct 19 21:36:41 2011 +0200
win32: Record the native event mask in use
gdk/win32/gdkwindow-win32.c | 16 ++++++++++++----
gdk/win32/gdkwindow-win32.h | 2 ++
2 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 5eca45d..b58a954 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -657,7 +657,7 @@ _gdk_window_impl_new (GdkWindow *window,
if (!title || !*title)
title = "";
- private->event_mask = GDK_STRUCTURE_MASK | event_mask;
+ impl->native_event_mask = GDK_STRUCTURE_MASK | event_mask;
if (attributes_mask & GDK_WA_TYPE_HINT)
gdk_window_set_type_hint (window, attributes->type_hint);
@@ -2636,21 +2636,29 @@ _gdk_windowing_window_at_pointer (GdkDisplay *display,
static GdkEventMask
gdk_win32_window_get_events (GdkWindow *window)
{
+ GdkWindowImplWin32 *impl;
+
if (GDK_WINDOW_DESTROYED (window))
return 0;
- return GDK_WINDOW_OBJECT (window)->event_mask;
+ impl = GDK_WINDOW_IMPL_WIN32 (GDK_WINDOW_OBJECT (window)->impl);
+
+ return impl->native_event_mask;
}
static void
gdk_win32_window_set_events (GdkWindow *window,
- GdkEventMask event_mask)
+ GdkEventMask event_mask)
{
+ GdkWindowImplWin32 *impl;
+
+ impl = GDK_WINDOW_IMPL_WIN32 (GDK_WINDOW_OBJECT (window)->impl);
+
/* gdk_window_new() always sets the GDK_STRUCTURE_MASK, so better
* set it here, too. Not that I know or remember why it is
* necessary, will have to test some day.
*/
- GDK_WINDOW_OBJECT (window)->event_mask = GDK_STRUCTURE_MASK | event_mask;
+ impl->native_event_mask = GDK_STRUCTURE_MASK | event_mask;
}
static void
diff --git a/gdk/win32/gdkwindow-win32.h b/gdk/win32/gdkwindow-win32.h
index f488e59..1ba1ed3 100644
--- a/gdk/win32/gdkwindow-win32.h
+++ b/gdk/win32/gdkwindow-win32.h
@@ -80,6 +80,8 @@ struct _GdkWindowImplWin32
gint hint_flags;
GdkGeometry hints;
+ GdkEventMask native_event_mask;
+
GdkWindowTypeHint type_hint;
gboolean extension_events_selected;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]