Bug 1341915: Make win32 nsAppShell's event window message-only; r=jimm
authorAaron Klotz <aklotz@mozilla.com>
Wed, 22 Feb 2017 16:24:29 -0700
changeset 373535 9b7d8840e54f0470d9defb2a7b0a0a32b10cd7b1
parent 373534 22c5f7ea3629a548783bb88f6dc16fa10d9fbfaa
child 373536 120f133678392553fbe45367d91a5252b5d7052b
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs1341915
milestone54.0a1
Bug 1341915: Make win32 nsAppShell's event window message-only; r=jimm MozReview-Commit-ID: C9gL90RUIcm
widget/windows/nsAppShell.cpp
--- a/widget/windows/nsAppShell.cpp
+++ b/widget/windows/nsAppShell.cpp
@@ -232,17 +232,18 @@ nsAppShell::Init()
     wc.hCursor       = nullptr;
     wc.hbrBackground = (HBRUSH) nullptr;
     wc.lpszMenuName  = (LPCWSTR) nullptr;
     wc.lpszClassName = kWindowClass;
     RegisterClassW(&wc);
   }
 
   mEventWnd = CreateWindowW(kWindowClass, L"nsAppShell:EventWindow",
-                           0, 0, 0, 10, 10, nullptr, nullptr, module, nullptr);
+                            0, 0, 0, 10, 10, HWND_MESSAGE, nullptr, module,
+                            nullptr);
   NS_ENSURE_STATE(mEventWnd);
 
   return nsBaseAppShell::Init();
 }
 
 NS_IMETHODIMP
 nsAppShell::Run(void)
 {