15 lines
431 B
Diff
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",
|
|
|