wayland: Add NULL warning check to _gdk_wayland_window_set_device_grabbed

This commit is contained in:
Rob Bradford 2012-03-05 19:41:11 +00:00
parent 99e0f4b62c
commit ff2acecac6

View File

@ -1512,7 +1512,11 @@ _gdk_wayland_window_set_device_grabbed (GdkWindow *window,
struct wl_input_device *input_device,
guint32 time_)
{
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
GdkWindowImplWayland *impl;
g_return_if_fail (window != NULL);
impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
impl->grab_input_device = input_device;
impl->grab_time = time_;