From 5c3efe8a80f8d9022d4382c7b8e4db98b2a54c5c Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Mon, 4 Feb 2019 14:31:04 +0100 Subject: Use MOZ_ENABLE_WAYLAND to enable Wayland backend --- mozilla-1522780.patch | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'mozilla-1522780.patch') diff --git a/mozilla-1522780.patch b/mozilla-1522780.patch index 9b771b0..809a598 100644 --- a/mozilla-1522780.patch +++ b/mozilla-1522780.patch @@ -1,17 +1,17 @@ -diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp ---- a/toolkit/xre/nsAppRunner.cpp -+++ b/toolkit/xre/nsAppRunner.cpp -@@ -3622,12 +3622,15 @@ +diff -up firefox-65.0/toolkit/xre/nsAppRunner.cpp.1522780 firefox-65.0/toolkit/xre/nsAppRunner.cpp +--- firefox-65.0/toolkit/xre/nsAppRunner.cpp.1522780 2019-02-04 14:27:16.704591496 +0100 ++++ firefox-65.0/toolkit/xre/nsAppRunner.cpp 2019-02-04 14:30:01.869913509 +0100 +@@ -3839,12 +3839,14 @@ int XREMain::XRE_mainStartup(bool* aExit bool disableWayland = true; - # if defined(MOZ_WAYLAND) + #if defined(MOZ_WAYLAND) - // Make X11 backend the default one. - // Enable Wayland backend only when GDK_BACKEND is set and - // Gtk+ >= 3.22 where we can expect recent enough -+ // Enable Wayland on Gtk+ >= 3.22 where we can expect recent enough - // compositor & libwayland interface. +- // compositor & libwayland interface. - disableWayland = (PR_GetEnv("GDK_BACKEND") == nullptr) || - (gtk_check_version(3, 22, 0) != nullptr); ++ // Enable Wayland on Gtk+ >= 3.22 where we can expect recent enough + disableWayland = (gtk_check_version(3, 22, 0) != nullptr); + if (!disableWayland) { + // Make X11 backend the default one unless MOZ_ENABLE_WAYLAND or @@ -19,7 +19,6 @@ diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp + disableWayland = (PR_GetEnv("GDK_BACKEND") == nullptr) && + (PR_GetEnv("MOZ_ENABLE_WAYLAND") == nullptr); + } - # endif + #endif // On Wayland disabled builds read X11 DISPLAY env exclusively // and don't care about different displays. - -- cgit