forked from AuroraMiddleware/gtk
Avoid crash by not passing in NULL mask pointer to _gdk_windowing_get_pointer
This commit is contained in:
parent
3a6d68e836
commit
2e3661e453
@ -522,6 +522,7 @@ gdk_window_real_window_get_pointer (GdkDisplay *display,
|
|||||||
GdkWindowObject *private;
|
GdkWindowObject *private;
|
||||||
GdkWindow *pointer_window;
|
GdkWindow *pointer_window;
|
||||||
gint tmpx, tmpy;
|
gint tmpx, tmpy;
|
||||||
|
GdkModifierType tmp_mask;
|
||||||
|
|
||||||
private = (GdkWindowObject *) window;
|
private = (GdkWindowObject *) window;
|
||||||
|
|
||||||
@ -546,7 +547,7 @@ gdk_window_real_window_get_pointer (GdkDisplay *display,
|
|||||||
_gdk_windowing_window_get_pointer (display,
|
_gdk_windowing_window_get_pointer (display,
|
||||||
pointer_window,
|
pointer_window,
|
||||||
&tmpx, &tmpy,
|
&tmpx, &tmpy,
|
||||||
NULL);
|
&tmp_mask);
|
||||||
/* Then convert that to a client side window */
|
/* Then convert that to a client side window */
|
||||||
pointer_window = _gdk_window_find_descendant_at (pointer_window,
|
pointer_window = _gdk_window_find_descendant_at (pointer_window,
|
||||||
tmpx, tmpy,
|
tmpx, tmpy,
|
||||||
|
Loading…
Reference in New Issue
Block a user