Ken Thomases : winemac: Actually switch Win32 focus away from a window that has lost Cocoa focus.
Alexandre Julliard
julliard at winehq.org
Fri Jun 7 11:45:12 CDT 2013
Module: wine
Branch: master
Commit: e635952459c9f563860dda729e3a19374a27c7ec
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e635952459c9f563860dda729e3a19374a27c7ec
Author: Ken Thomases <ken at codeweavers.com>
Date: Thu Jun 6 19:44:11 2013 -0500
winemac: Actually switch Win32 focus away from a window that has lost Cocoa focus.
---
dlls/winemac.drv/window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index 7e0c60e..5328489 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -1587,7 +1587,11 @@ void macdrv_window_lost_focus(HWND hwnd, const macdrv_event *event)
TRACE("win %p/%p fg %p\n", hwnd, event->window, GetForegroundWindow());
if (hwnd == GetForegroundWindow())
+ {
SendMessageW(hwnd, WM_CANCELMODE, 0, 0);
+ if (hwnd == GetForegroundWindow())
+ SetForegroundWindow(GetDesktopWindow());
+ }
}
More information about the wine-cvs
mailing list