mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
winemac: Don't bring disabled or no-activate windows forward when clicked.
This commit is contained in:
parent
c14ff4bef0
commit
3faf1a92b0
@ -1428,6 +1428,7 @@ int macdrv_err_on;
|
||||
NSEventType type = [theEvent type];
|
||||
|
||||
if ([window isKindOfClass:[WineWindow class]] &&
|
||||
!window.disabled && !window.noActivate &&
|
||||
type == NSLeftMouseDown &&
|
||||
(([theEvent modifierFlags] & (NSShiftKeyMask | NSControlKeyMask| NSAlternateKeyMask | NSCommandKeyMask)) != NSCommandKeyMask))
|
||||
{
|
||||
|
@ -60,6 +60,8 @@
|
||||
}
|
||||
|
||||
@property (retain, readonly, nonatomic) WineEventQueue* queue;
|
||||
@property (readonly, nonatomic) BOOL disabled;
|
||||
@property (readonly, nonatomic) BOOL noActivate;
|
||||
@property (readonly, nonatomic) BOOL floating;
|
||||
@property (readonly, getter=isFullscreen, nonatomic) BOOL fullscreen;
|
||||
|
||||
|
@ -136,8 +136,8 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
|
||||
|
||||
@interface WineWindow ()
|
||||
|
||||
@property (nonatomic) BOOL disabled;
|
||||
@property (nonatomic) BOOL noActivate;
|
||||
@property (readwrite, nonatomic) BOOL disabled;
|
||||
@property (readwrite, nonatomic) BOOL noActivate;
|
||||
@property (readwrite, nonatomic) BOOL floating;
|
||||
@property (retain, nonatomic) NSWindow* latentParentWindow;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user