Bug 707814 - Awesomebar autocomplete box appears in the wrong place [r=mstange, a=akeybl]
authorPaul O’Shannessy <paul@oshannessy.com>
Fri, 23 Dec 2011 16:36:20 -0800
changeset 84795 0908a812913f3fce04e7afe3b217842fac11b168
parent 84794 1a3c44424b03b892eaa98c05ed997a1d6d24c8ea
child 84796 60334bde46a0da27f48e793e0eee964c360e31af
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange, akeybl
bugs707814
milestone11.0a2
Bug 707814 - Awesomebar autocomplete box appears in the wrong place [r=mstange, a=akeybl]
widget/src/cocoa/nsCocoaWindow.mm
--- a/widget/src/cocoa/nsCocoaWindow.mm
+++ b/widget/src/cocoa/nsCocoaWindow.mm
@@ -1793,16 +1793,24 @@ bool nsCocoaWindow::ShouldFocusPlugin()
   if (!mGeckoWindow)
     return;
 
   // Resizing might have changed our zoom state.
   mGeckoWindow->DispatchSizeModeEvent();
   mGeckoWindow->ReportSizeEvent();
 }
 
+- (void)windowDidChangeScreen:(NSNotification *)aNotification
+{
+  if (!mGeckoWindow)
+    return;
+
+  mGeckoWindow->ReportMoveEvent();
+}
+
 - (void)windowDidBecomeMain:(NSNotification *)aNotification
 {
   NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
 
   RollUpPopups();
   ChildViewMouseTracker::ReEvaluateMouseEnterState();
 
   // [NSApp _isRunningAppModal] will return true if we're running an OS dialog