Avoid crash by not passing in NULL mask pointer to _gdk_windowing_get_pointer

This commit is contained in:
Alexander Larsson 2008-12-04 13:07:25 +01:00 committed by Alexander Larsson
parent 3a6d68e836
commit 2e3661e453

View File

@ -522,6 +522,7 @@ gdk_window_real_window_get_pointer (GdkDisplay *display,
GdkWindowObject *private;
GdkWindow *pointer_window;
gint tmpx, tmpy;
GdkModifierType tmp_mask;
private = (GdkWindowObject *) window;
@ -546,7 +547,7 @@ gdk_window_real_window_get_pointer (GdkDisplay *display,
_gdk_windowing_window_get_pointer (display,
pointer_window,
&tmpx, &tmpy,
NULL);
&tmp_mask);
/* Then convert that to a client side window */
pointer_window = _gdk_window_find_descendant_at (pointer_window,
tmpx, tmpy,