OSDN Git Service
(root)
/
xkeymacs
/
xkeymacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Firefox crashes on showing a move in full screen
[xkeymacs/xkeymacs.git]
/
xkeymacsdll
/
xkeymacsdll.cpp
diff --git
a/xkeymacsdll/xkeymacsdll.cpp
b/xkeymacsdll/xkeymacsdll.cpp
index
5fbe565
..
45ddeab
100644
(file)
--- a/
xkeymacsdll/xkeymacsdll.cpp
+++ b/
xkeymacsdll/xkeymacsdll.cpp
@@
-260,8
+260,10
@@
LRESULT CALLBACK CXkeymacsDll::CallWndProc(int nCode, WPARAM wParam, LPARAM lPar
SetIMEState(false);
\r
break;
\r
case WM_SETFOCUS:
\r
SetIMEState(false);
\r
break;
\r
case WM_SETFOCUS:
\r
- SetIMEState(false);
\r
- ShowHookState();
\r
+ if (cwps->hwnd == GetForegroundWindow() || GetWindowLong(cwps->hwnd, GWL_STYLE) == 0x56000000) {
\r
+ SetIMEState(false);
\r
+ ShowHookState();
\r
+ }
\r
break;
\r
case WM_NCACTIVATE:
\r
if (cwps->wParam && cwps->hwnd == GetForegroundWindow()) {
\r
break;
\r
case WM_NCACTIVATE:
\r
if (cwps->wParam && cwps->hwnd == GetForegroundWindow()) {
\r