--- mutter-3.24.0/src/compositor/compositor.c.orig	2017-03-25 16:23:25.312897438 +0000
+++ mutter-3.24.0/src/compositor/compositor.c	2017-03-25 16:24:28.804791971 +0000
@@ -388,7 +388,9 @@
       meta_display_sync_wayland_input_focus (display);
       meta_display_cancel_touch (display);
 
+#ifdef HAVE_WAYLAND
       meta_dnd_wayland_handle_begin_modal (compositor);
+#endif
     }
 
   return TRUE;
