Module: wine Branch: master Commit: b96b5655142aa42f4679f25b297f354723fa1894 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b96b5655142aa42f4679f25b29...
Author: Ken Thomases ken@codeweavers.com Date: Fri Jun 7 04:25:29 2013 -0500
winemac: Command-clicks shouldn't give windows focus.
---
dlls/winemac.drv/cocoa_window.m | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 7c2e040..54e59fd 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -1132,7 +1132,8 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers) [[self firstResponder] keyDown:event]; else { - if ([event type] == NSLeftMouseDown) + if ([event type] == NSLeftMouseDown && + (([event modifierFlags] & (NSShiftKeyMask | NSControlKeyMask| NSAlternateKeyMask | NSCommandKeyMask)) != NSCommandKeyMask)) { /* Since our windows generally claim they can't be made key, clicks in their title bars are swallowed by the theme frame stuff. So,