summaryrefslogtreecommitdiff
path: root/mozilla-1703657.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-04-07 22:06:27 +0200
committerMartin Stransky <stransky@redhat.com>2021-04-07 22:06:27 +0200
commit05b9a9097b74c5f4e5522c80d5eb8f5b346284e2 (patch)
treefac3329b08d774814700e9df65171aba35cbd0f7 /mozilla-1703657.patch
parentEnabled xpcshell/crashtests on Wayland (diff)
downloadlibrewolf-fedora-ff-05b9a9097b74c5f4e5522c80d5eb8f5b346284e2.tar.gz
librewolf-fedora-ff-05b9a9097b74c5f4e5522c80d5eb8f5b346284e2.tar.bz2
librewolf-fedora-ff-05b9a9097b74c5f4e5522c80d5eb8f5b346284e2.zip
Added wayland focus workaround - mzbz#1703657
Diffstat (limited to 'mozilla-1703657.patch')
-rw-r--r--mozilla-1703657.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/mozilla-1703657.patch b/mozilla-1703657.patch
new file mode 100644
index 0000000..885fe81
--- /dev/null
+++ b/mozilla-1703657.patch
@@ -0,0 +1,28 @@
+changeset: 576616:8d1ea60136ed
+tag: tip
+parent: 576614:144a345005ac
+user: stransky <stransky@redhat.com>
+date: Wed Apr 07 21:55:43 2021 +0200
+files: widget/gtk/nsWindow.cpp
+description:
+Bug 1703657 [Wayland] Use wayland focus workaround if widget.wayland-focus-workaroud is set at nsWindow::SetFocus(), r?rmader
+
+Differential Revision: https://phabricator.services.mozilla.com/D111162
+
+
+diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
+--- a/widget/gtk/nsWindow.cpp
++++ b/widget/gtk/nsWindow.cpp
+@@ -2220,9 +2220,9 @@ void nsWindow::SetFocus(Raise aRaise, mo
+ if (gRaiseWindows && owningWindow->mIsShown && owningWindow->mShell &&
+ !gtk_window_is_active(GTK_WINDOW(owningWindow->mShell))) {
+ if (!mIsX11Display &&
+- Preferences::GetBool("testing.browserTestHarness.running", false)) {
++ Preferences::GetBool("widget.wayland-focus-workaroud", false)) {
+ // Wayland does not support focus changes so we need to workaround it
+- // by window hide/show sequence but only when it's running in testsuite.
++ // by window hide/show sequence.
+ owningWindow->NativeShow(false);
+ owningWindow->NativeShow(true);
+ return;
+
bgstack15