diff options
author | Martin Stransky <stransky@redhat.com> | 2019-02-04 14:22:04 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2019-02-04 14:22:04 +0100 |
commit | a50204840befb6ceb31f61202e2b93406b1bf7ae (patch) | |
tree | db742f5111b44683be5d6ca3e6c15fce1275c3fd | |
parent | Removed unused mozilla-1435212-ffmpeg-4.0.patch (diff) | |
download | librewolf-fedora-ff-a50204840befb6ceb31f61202e2b93406b1bf7ae.tar.gz librewolf-fedora-ff-a50204840befb6ceb31f61202e2b93406b1bf7ae.tar.bz2 librewolf-fedora-ff-a50204840befb6ceb31f61202e2b93406b1bf7ae.zip |
Added wayland launcher fix
-rw-r--r-- | mozilla-1522780.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mozilla-1522780.patch b/mozilla-1522780.patch new file mode 100644 index 0000000..9b771b0 --- /dev/null +++ b/mozilla-1522780.patch @@ -0,0 +1,25 @@ +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 @@ + + bool disableWayland = true; + # 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. +- disableWayland = (PR_GetEnv("GDK_BACKEND") == nullptr) || +- (gtk_check_version(3, 22, 0) != nullptr); ++ disableWayland = (gtk_check_version(3, 22, 0) != nullptr); ++ if (!disableWayland) { ++ // Make X11 backend the default one unless MOZ_ENABLE_WAYLAND or ++ // GDK_BACKEND are specified. ++ disableWayland = (PR_GetEnv("GDK_BACKEND") == nullptr) && ++ (PR_GetEnv("MOZ_ENABLE_WAYLAND") == nullptr); ++ } + # endif + // On Wayland disabled builds read X11 DISPLAY env exclusively + // and don't care about different displays. + |