wayland: Only set x, y, and modifiers if the pointers are non-NULL
This commit is contained in:
@ -214,9 +214,12 @@ gdk_device_core_window_at_position (GdkDevice *device,
|
|||||||
GdkWaylandDevice *wd;
|
GdkWaylandDevice *wd;
|
||||||
|
|
||||||
wd = GDK_DEVICE_CORE(device)->device;
|
wd = GDK_DEVICE_CORE(device)->device;
|
||||||
*win_x = wd->surface_x;
|
if (win_x)
|
||||||
*win_y = wd->surface_y;
|
*win_x = wd->surface_x;
|
||||||
*mask = wd->modifiers;
|
if (win_y)
|
||||||
|
*win_y = wd->surface_y;
|
||||||
|
if (mask)
|
||||||
|
*mask = wd->modifiers;
|
||||||
|
|
||||||
return wd->pointer_focus;
|
return wd->pointer_focus;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user