winemac: Actually switch Win32 focus away from a window that has lost Cocoa focus.

Ken Thomases ken at codeweavers.com
Thu Jun 6 19:44:11 CDT 2013


I had been figuring that, after a WINDOW_LOST_FOCUS event, either the process
would receive APP_DEACTIVATED or the focus was being switched to another
window within the process and so we'd get a WINDOW_GOT_FOCUS event.  Either
of those would switch the Win32 focus as necessary.  However, there are cases
where an app remains active even though all of its windows have lost focus.

A simple case is when the Spotlight menu has been pulled down and focus is in
its edit field.  Mac-native apps stop blinking their insertion point (caret)
but Wine apps didn't.  Now they do.

Another case is when all of an app's windows are minimized.
---
dlls/winemac.drv/window.c |    4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac-Actually-switch-Win32-focus-away-from-a-wind.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130606/1e68db73/attachment.bin>


More information about the wine-patches mailing list