30 lines
987 B
Diff
30 lines
987 B
Diff
diff --git a/toolkit/moz.configure b/toolkit/moz.configure
|
|
--- a/toolkit/moz.configure
|
|
+++ b/toolkit/moz.configure
|
|
@@ -532,10 +532,24 @@
|
|
|
|
|
|
set_config("MOZ_WAYLAND", depends_if(wayland_headers)(lambda _: True))
|
|
set_define("MOZ_WAYLAND", depends_if(wayland_headers)(lambda _: True))
|
|
|
|
+# Wayland proxy is used as load balancer between Firefox and Wayland
|
|
+# compositor.
|
|
+# ==============================================================
|
|
+option("--disable-wayland-proxy", help="Disable Wayland load balancer")
|
|
+
|
|
+
|
|
+@depends("--enable-wayland-proxy", when=toolkit_gtk_wayland)
|
|
+def wayland_proxy(value):
|
|
+ if value:
|
|
+ return True
|
|
+
|
|
+
|
|
+set_config("MOZ_WAYLAND_PROXY", wayland_proxy)
|
|
+set_define("MOZ_WAYLAND_PROXY", wayland_proxy)
|
|
|
|
# Hardware-accelerated video decode with VAAPI and V4L2 on Linux
|
|
# ==============================================================
|
|
set_config("MOZ_ENABLE_VAAPI", True, when=toolkit_gtk)
|
|
set_define("MOZ_ENABLE_VAAPI", True, when=toolkit_gtk)
|
|
|