Use MOZ_ENABLE_WAYLAND for Wayland launcher
This commit is contained in:
parent
d32e6e9da7
commit
d96601547d
42
mozilla-1522780.patch
Normal file
42
mozilla-1522780.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
diff -up thunderbird-60.5.0/toolkit/xre/nsAppRunner.cpp.1522780 thunderbird-60.5.0/toolkit/xre/nsAppRunner.cpp
|
||||||
|
--- thunderbird-60.5.0/toolkit/xre/nsAppRunner.cpp.1522780 2019-02-05 20:57:28.384820067 +0100
|
||||||
|
+++ thunderbird-60.5.0/toolkit/xre/nsAppRunner.cpp 2019-02-05 21:05:27.623511428 +0100
|
||||||
|
@@ -3872,10 +3872,26 @@ int XREMain::XRE_mainStartup(bool* aExit
|
||||||
|
saveDisplayArg = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
- // On Wayland disabled builds read X11 DISPLAY env exclusively
|
||||||
|
- // and don't care about different displays.
|
||||||
|
-#if !defined(MOZ_WAYLAND)
|
||||||
|
- if (!display_name) {
|
||||||
|
+ 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
|
||||||
|
+ // 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
|
||||||
|
+ // 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.
|
||||||
|
+ if (disableWayland && !display_name) {
|
||||||
|
display_name = PR_GetEnv("DISPLAY");
|
||||||
|
if (!display_name) {
|
||||||
|
PR_fprintf(PR_STDERR,
|
||||||
|
@@ -3883,7 +3899,6 @@ int XREMain::XRE_mainStartup(bool* aExit
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-#endif
|
||||||
|
|
||||||
|
if (display_name) {
|
||||||
|
mGdkDisplay = gdk_display_open(display_name);
|
@ -3,5 +3,10 @@
|
|||||||
# Run Thunderbird under Wayland
|
# Run Thunderbird under Wayland
|
||||||
#
|
#
|
||||||
|
|
||||||
export GDK_BACKEND=wayland
|
##
|
||||||
|
## Enable Wayland backend?
|
||||||
|
##
|
||||||
|
if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ]; then
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
fi
|
||||||
exec /usr/bin/thunderbird "$@"
|
exec /usr/bin/thunderbird "$@"
|
||||||
|
@ -36,13 +36,6 @@ MOZ_LANGPACKS_DIR="$MOZ_DIST_BIN/langpacks"
|
|||||||
MOZ_EXTENSIONS_PROFILE_DIR="$HOME/.mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}"
|
MOZ_EXTENSIONS_PROFILE_DIR="$HOME/.mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}"
|
||||||
MOZ_LAUNCHER="$MOZ_DIST_BIN/thunderbird"
|
MOZ_LAUNCHER="$MOZ_DIST_BIN/thunderbird"
|
||||||
|
|
||||||
##
|
|
||||||
## Enable X11 backend by default?
|
|
||||||
##
|
|
||||||
if ! [ "$GDK_BACKEND" ]; then
|
|
||||||
export GDK_BACKEND=x11
|
|
||||||
fi
|
|
||||||
|
|
||||||
##
|
##
|
||||||
## Set MOZ_ENABLE_PANGO is no longer used because Pango is enabled by default
|
## Set MOZ_ENABLE_PANGO is no longer used because Pango is enabled by default
|
||||||
## you may use MOZ_DISABLE_PANGO=1 to force disabling of pango
|
## you may use MOZ_DISABLE_PANGO=1 to force disabling of pango
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
Summary: Mozilla Thunderbird mail/newsgroup client
|
Summary: Mozilla Thunderbird mail/newsgroup client
|
||||||
Name: thunderbird
|
Name: thunderbird
|
||||||
Version: 60.5.0
|
Version: 60.5.0
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
URL: http://www.mozilla.org/projects/thunderbird/
|
URL: http://www.mozilla.org/projects/thunderbird/
|
||||||
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
@ -122,6 +122,7 @@ Patch309: mozilla-1460871-ldap-query.patch
|
|||||||
|
|
||||||
# Fedora specific patches
|
# Fedora specific patches
|
||||||
Patch311: firefox-wayland.patch
|
Patch311: firefox-wayland.patch
|
||||||
|
Patch312: mozilla-1522780.patch
|
||||||
|
|
||||||
# Upstream patches
|
# Upstream patches
|
||||||
|
|
||||||
@ -256,6 +257,7 @@ debug %{name}, you want to install %{name}-debuginfo instead.
|
|||||||
#cd ..
|
#cd ..
|
||||||
|
|
||||||
%patch311 -p1 -b .wayland
|
%patch311 -p1 -b .wayland
|
||||||
|
%patch312 -p1 -b .1522780
|
||||||
|
|
||||||
%if %{official_branding}
|
%if %{official_branding}
|
||||||
# Required by Mozilla Corporation
|
# Required by Mozilla Corporation
|
||||||
@ -676,6 +678,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 05 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-4
|
||||||
|
- Use MOZ_ENABLE_WAYLAND for Wayland launcher.
|
||||||
|
|
||||||
* Tue Feb 05 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-3
|
* Tue Feb 05 2019 Martin Stransky <stransky@redhat.com> - 60.5.0-3
|
||||||
- Updated Wayland patches
|
- Updated Wayland patches
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user