summaryrefslogtreecommitdiff
path: root/mozilla-1645695.patch
blob: feaae4ab02dfb951a4f1c719119848a8c0e46bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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",

bgstack15