Commit 34b11786 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Initialize variables

valgrind was complaining about uninitialized values here, and
sure enough, gdkdevice-xi.c doesn't set device position.
parent 407b73dd
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment