fix dev tools window interfering with mouse forward (#12132)
This commit is contained in:
parent
fdab98aa59
commit
69e7afee26
1 changed files with 6 additions and 2 deletions
|
@ -160,8 +160,12 @@ bool NativeWindowViews::PreHandleMSG(
|
||||||
if (LOWORD(w_param) == WM_CREATE) {
|
if (LOWORD(w_param) == WM_CREATE) {
|
||||||
// Because of reasons regarding legacy drivers and stuff, a window that
|
// Because of reasons regarding legacy drivers and stuff, a window that
|
||||||
// matches the client area is created and used internally by Chromium.
|
// matches the client area is created and used internally by Chromium.
|
||||||
// This is used when forwarding mouse messages.
|
// This is used when forwarding mouse messages. We only cache the first
|
||||||
legacy_window_ = reinterpret_cast<HWND>(l_param);
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue