Bug 1457194 - Label mShell toplevel window so property_notify_event_cb callback can find its way home, r=jhorak
authorMartin Stransky <stransky@redhat.com>
Fri, 27 Apr 2018 12:35:08 +0200
changeset 472121 9c70604962648780c82ae1a4773b0f249b26863f
parent 472120 921741097e18e65b236aa834502f61d78cb0f805
child 472122 2a66df1058cd34a1d48e1e1e3bcd2db36714ed51
child 472147 7e3aa63ae7529cc0b48c106cbc918e937872c273
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhorak
bugs1457194
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1457194 - Label mShell toplevel window so property_notify_event_cb callback can find its way home, r=jhorak MozReview-Commit-ID: BGJNFnbEMQ3
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -6722,16 +6722,21 @@ nsWindow::SetDrawsInTitlebar(bool aState
                                         &allocation.height);
         gtk_widget_size_allocate(GTK_WIDGET(mShell), &allocation);
 
         gtk_widget_realize(GTK_WIDGET(mShell));
         gtk_widget_reparent(GTK_WIDGET(mContainer), GTK_WIDGET(mShell));
         mNeedsShow = true;
         NativeResize();
 
+        // Label mShell toplevel window so property_notify_event_cb callback
+        // can find its way home.
+        g_object_set_data(G_OBJECT(gtk_widget_get_window(mShell)),
+                          "nsWindow", this);
+
         UpdateClientOffsetForCSDWindow();
 
         gtk_widget_destroy(tmpWindow);
     }
 
     mDrawInTitlebar = aState;
 }