# HG changeset patch # User Martin Stransky # Date 1517578952 -3600 # Node ID 7371bea626777f8bee55bf2d6347fcbf364de4fa # Parent 781e08badae1db85ed4acc0417745ee8464977b8 Bug 1435244 - don't call wl_display_roundtrip_queue() with null wl_queue but rather use wl_display_roundtrip(), r=jhorak MozReview-Commit-ID: BQzAuCFJgBS diff --git a/widget/gtk/WindowSurfaceWayland.cpp b/widget/gtk/WindowSurfaceWayland.cpp --- a/widget/gtk/WindowSurfaceWayland.cpp +++ b/widget/gtk/WindowSurfaceWayland.cpp @@ -268,17 +268,21 @@ nsWaylandDisplay::GetShm() if (!mShm) { // wl_shm is not provided by Gtk so we need to query wayland directly // See weston/simple-shm.c and create_display() for reference. wl_registry* registry = wl_display_get_registry(mDisplay); wl_registry_add_listener(registry, ®istry_listener, this); wl_proxy_set_queue((struct wl_proxy *)registry, mEventQueue); - wl_display_roundtrip_queue(mDisplay, mEventQueue); + if (mEventQueue) { + wl_display_roundtrip_queue(mDisplay, mEventQueue); + } else { + wl_display_roundtrip(mDisplay); + } MOZ_RELEASE_ASSERT(mShm, "Wayland registry query failed!"); } return(mShm); } bool