Bug 1400238 - Notify TabParent when the GTK client offset changes. r=karlt
authorBotond Ballo <botond@mozilla.com>
Wed, 18 Oct 2017 13:29:47 -0400
changeset 387808 76300bd1f7c18286fd6e280df454e97755ff6524
parent 387807 09f2bfedb4db08356b3a275972bacac1a1ce500d
child 387809 6a9ca63ae2b5921b0e9f0f31ce80fe0adffa04e7
push id96497
push userarchaeopteryx@coole-files.de
push dateTue, 24 Oct 2017 09:57:53 +0000
treeherdermozilla-inbound@7de3cc48b5b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1400238
milestone58.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 1400238 - Notify TabParent when the GTK client offset changes. r=karlt MozReview-Commit-ID: 1TacAhl6c2M
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -1562,16 +1562,21 @@ nsWindow::GetClientOffset()
 }
 
 gboolean
 nsWindow::OnPropertyNotifyEvent(GtkWidget* aWidget, GdkEventProperty* aEvent)
 
 {
   if (aEvent->atom == gdk_atom_intern("_NET_FRAME_EXTENTS", FALSE)) {
     UpdateClientOffset();
+
+    // Send a WindowMoved notification. This ensures that TabParent
+    // picks up the new client offset and sends it to the child process
+    // if appropriate.
+    NotifyWindowMoved(mBounds.x, mBounds.y);
     return FALSE;
   }
 
   if (GetCurrentTimeGetter()->PropertyNotifyHandler(aWidget, aEvent)) {
     return TRUE;
   }
 
   return FALSE;