firefox/mozilla-1645695.patch
2021-01-20 16:35:08 +01:00

15 lines
431 B
Diff

diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -1768,7 +1768,8 @@
}
#endif
- if (!g_signal_handler_find(
+ if (isWidgetVisible &&
+ !g_signal_handler_find(
gdkWindow, G_SIGNAL_MATCH_FUNC, 0, 0, nullptr,
FuncToGpointer(NativeMoveResizeWaylandPopupCallback), this)) {
g_signal_connect(gdkWindow, "moved-to-rect",