Replace two instances of gdk_pointer_grab with gdk_device_grab