コミットメタ情報

リビジョン8799a18c2e444b8aaa9fe2b429b373056be8829f (tree)
日時2017-05-12 19:21:41
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

Fix Firefox crashes on showing a move in full screen

Since 78e2c1c, CallWndProc updates the current hook state on every
WM_SETFOCUS for IE10 or later. Firefox crushes by this on expanding a
movie to full screen. This fix makes CallWndProc update the state only
on foreground windows or IE tabs.

変更サマリ

差分

--- a/xkeymacsdll/xkeymacsdll.cpp
+++ b/xkeymacsdll/xkeymacsdll.cpp
@@ -260,8 +260,10 @@ LRESULT CALLBACK CXkeymacsDll::CallWndProc(int nCode, WPARAM wParam, LPARAM lPar
260260 SetIMEState(false);
261261 break;
262262 case WM_SETFOCUS:
263- SetIMEState(false);
264- ShowHookState();
263+ if (cwps->hwnd == GetForegroundWindow() || GetWindowLong(cwps->hwnd, GWL_STYLE) == 0x56000000) {
264+ SetIMEState(false);
265+ ShowHookState();
266+ }
265267 break;
266268 case WM_NCACTIVATE:
267269 if (cwps->wParam && cwps->hwnd == GetForegroundWindow()) {
旧リポジトリブラウザで表示