summaryrefslogtreecommitdiff
path: root/mozilla-1522780.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2019-02-04 14:31:04 +0100
committerMartin Stransky <stransky@redhat.com>2019-02-04 14:31:04 +0100
commit5c3efe8a80f8d9022d4382c7b8e4db98b2a54c5c (patch)
treebfa9f5356fba8585fc82cb24bb6f40d19377fc7b /mozilla-1522780.patch
parentMerge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/firefox (diff)
downloadlibrewolf-fedora-ff-5c3efe8a80f8d9022d4382c7b8e4db98b2a54c5c.tar.gz
librewolf-fedora-ff-5c3efe8a80f8d9022d4382c7b8e4db98b2a54c5c.tar.bz2
librewolf-fedora-ff-5c3efe8a80f8d9022d4382c7b8e4db98b2a54c5c.zip
Use MOZ_ENABLE_WAYLAND to enable Wayland backend
Diffstat (limited to 'mozilla-1522780.patch')
-rw-r--r--mozilla-1522780.patch17
1 files changed, 8 insertions, 9 deletions
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.
-
bgstack15