mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
Initialize variables
valgrind was complaining about uninitialized values here, and sure enough, gdkdevice-xi.c doesn't set device position.
This commit is contained in:
parent
407b73dd80
commit
34b117865a
@ -5069,6 +5069,9 @@ gdk_window_get_device_position (GdkWindow *window,
|
||||
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
||||
g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
|
||||
|
||||
tmp_x = 0;
|
||||
tmp_y = 0;
|
||||
|
||||
display = gdk_window_get_display (window);
|
||||
child = display->device_hooks->window_get_device_position (display, device, window,
|
||||
&tmp_x, &tmp_y, &tmp_mask);
|
||||
|
Loading…
Reference in New Issue
Block a user