We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f082632 commit bf5cf53Copy full SHA for bf5cf53
src/win/hook.rs
@@ -131,9 +131,7 @@ unsafe fn offer_message_to_baseview(msg: *mut MSG) -> bool {
131
}
132
133
// check if this is one of our windows. if so, intercept it
134
- let state = HOOK_STATE.read().unwrap();
135
-
136
- if state.open_windows.contains(&HWNDWrapper(msg.hwnd)) {
+ if HOOK_STATE.read().unwrap().open_windows.contains(&HWNDWrapper(msg.hwnd)) {
137
let _ = wnd_proc(msg.hwnd, msg.message, msg.wParam, msg.lParam);
138
139
return true;
0 commit comments