summaryrefslogtreecommitdiff
path: root/mozilla-1431399.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mozilla-1431399.patch')
-rw-r--r--mozilla-1431399.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/mozilla-1431399.patch b/mozilla-1431399.patch
new file mode 100644
index 0000000..b6513d0
--- /dev/null
+++ b/mozilla-1431399.patch
@@ -0,0 +1,17 @@
+diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
+--- a/widget/gtk/nsWindow.cpp
++++ b/widget/gtk/nsWindow.cpp
+@@ -3242,6 +3242,12 @@
+ mBounds = aRect;
+ ConstrainSize(&mBounds.width, &mBounds.height);
+
++ // eWindowType_child is not supported on Wayland. Just switch to toplevel
++ // as a workaround.
++ if (!mIsX11Display && mWindowType == eWindowType_child) {
++ mWindowType = eWindowType_toplevel;
++ }
++
+ // figure out our parent window
+ GtkWidget *parentMozContainer = nullptr;
+ GtkContainer *parentGtkContainer = nullptr;
+
bgstack15