Commit 1cd65aea authored by Kristian Høgsberg's avatar Kristian Høgsberg

wayland: Only set x, y, and modifiers if the pointers are non-NULL

parent 152dca40
......@@ -214,9 +214,12 @@ gdk_device_core_window_at_position (GdkDevice *device,
GdkWaylandDevice *wd;
wd = GDK_DEVICE_CORE(device)->device;
*win_x = wd->surface_x;
*win_y = wd->surface_y;
*mask = wd->modifiers;
if (win_x)
*win_x = wd->surface_x;
if (win_y)
*win_y = wd->surface_y;
if (mask)
*mask = wd->modifiers;
return wd->pointer_focus;
}
......
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