mirror of
https://github.com/electron/electron.git
synced 2026-02-04 04:05:36 -05:00
fix dev tools window interfering with mouse forward (#12132)
This commit is contained in:
@@ -160,8 +160,12 @@ bool NativeWindowViews::PreHandleMSG(
|
||||
if (LOWORD(w_param) == WM_CREATE) {
|
||||
// Because of reasons regarding legacy drivers and stuff, a window that
|
||||
// matches the client area is created and used internally by Chromium.
|
||||
// This is used when forwarding mouse messages.
|
||||
legacy_window_ = reinterpret_cast<HWND>(l_param);
|
||||
// This is used when forwarding mouse messages. We only cache the first
|
||||
// occurrence (the webview window) because dev tools also cause this
|
||||
// message to be sent.
|
||||
if (!legacy_window_) {
|
||||
legacy_window_ = reinterpret_cast<HWND>(l_param);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user