[gtk+/client-side-windows: 139/284] Handle NULL event mask in _gdk_windowing_window_at_pointer



commit 257dea55a7f13015f2824babd0a914951adc86ff
Author: Richard Hult <richard imendio com>
Date:   Wed Jan 7 15:44:52 2009 +0100

    Handle NULL event mask in _gdk_windowing_window_at_pointer
---
 gdk/quartz/gdkwindow-quartz.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 151f678..3b517e6 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -1915,11 +1915,12 @@ _gdk_windowing_window_at_pointer (GdkDisplay      *display,
 {
   GdkWindow *found_window;
   gint x, y;
+  GdkModifierType tmp_mask = 0;
 
   found_window = _gdk_windowing_window_get_pointer (display,
 						    _gdk_root,
 						    &x, &y,
-						    mask);
+						    &tmp_mask);
   if (found_window)
     {
       GdkWindowObject *private;
@@ -1946,6 +1947,9 @@ _gdk_windowing_window_at_pointer (GdkDisplay      *display,
       *win_y = -1;
     }
 
+  if (mask)
+    *mask = tmp_mask;
+
   return found_window;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]