Module: wine
Branch: master
Commit: 2e226b9ad8cd86b4ad6b5a73effa9fa7d5d03958
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e226b9ad8cd86b4ad6b5a73e…
Author: Ken Thomases <ken(a)codeweavers.com>
Date: Wed Apr 10 15:32:23 2013 -0500
winemac: Don't order the window on-screen in -[WineWindow adjustWindowLevel].
---
dlls/winemac.drv/cocoa_window.m | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m
index 6a85d74..c13a57d 100644
--- a/dlls/winemac.drv/cocoa_window.m
+++ b/dlls/winemac.drv/cocoa_window.m
@@ -437,7 +437,7 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
Also, any windows which are supposed to be in front of it had
better have the same or higher window level. If not, bump them
up. */
- if (index != NSNotFound)
+ if (index != NSNotFound && [self isVisible])
{
for (; index > 0; index--)
{