Bug 1341915: Make win32 nsAppShell's event window message-only; r?jimm draft
authorAaron Klotz <aklotz@mozilla.com>
Wed, 22 Feb 2017 16:24:29 -0700
changeset 488310 fd7ece68be2b893af273e2b0f69f11adf1e5c41f
parent 488309 9cbce6bce219ea547cf6ed62f89c71b88355453a
child 546693 62fcac7a0ef682df754e44e13c1b3627e932ffdd
push id46487
push useraklotz@mozilla.com
push dateWed, 22 Feb 2017 23:25:25 +0000
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)
 {