build: Fix non-wayland builds

meta_dnd_wayland_handle_end_modal is not available on non-wayland build.

https://bugzilla.gnome.org/show_bug.cgi?id=791916
This commit is contained in:
Ting-Wei Lan 2017-12-24 17:55:14 +08:00
parent 798026498d
commit 6cc48d8cbb

View File

@ -419,11 +419,13 @@ meta_end_modal_for_plugin (MetaCompositor *compositor,
meta_backend_ungrab_device (backend, META_VIRTUAL_CORE_POINTER_ID, timestamp); meta_backend_ungrab_device (backend, META_VIRTUAL_CORE_POINTER_ID, timestamp);
meta_backend_ungrab_device (backend, META_VIRTUAL_CORE_KEYBOARD_ID, timestamp); meta_backend_ungrab_device (backend, META_VIRTUAL_CORE_KEYBOARD_ID, timestamp);
#ifdef HAVE_WAYLAND
if (meta_is_wayland_compositor ()) if (meta_is_wayland_compositor ())
{ {
meta_dnd_wayland_handle_end_modal (compositor); meta_dnd_wayland_handle_end_modal (compositor);
meta_display_sync_wayland_input_focus (display); meta_display_sync_wayland_input_focus (display);
} }
#endif
} }
static void static void