• R/O
  • HTTP
  • SSH
  • HTTPS

xkeymacs: Commit


Commit MetaInfo

Revision8799a18c2e444b8aaa9fe2b429b373056be8829f (tree)
Time2017-05-12 19:21:41
AuthorKazuhiro Fujieda <fujieda@user...>
CommiterKazuhiro Fujieda

Log Message

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.

Change Summary

Incremental Difference

--- 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()) {
Show on old repository browser