diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-07 04:19:37 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-07 04:19:37 -0400 |
| commit | 77fdd9d1c34b6f75942996cfd578c3ccbe5fdd2d (patch) | |
| tree | aa9925b4fc8abe0eabcee1e43f91bc4b8aa2bf85 /area_darwin.m | |
| parent | dcefa88a048339f7311c3e2ce98217013117c739 (diff) | |
Documented window switch clicks in Area and implemented them on Windows and Mac OS X.
Diffstat (limited to 'area_darwin.m')
| -rw-r--r-- | area_darwin.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/area_darwin.m b/area_darwin.m index a9a565f..6522ecc 100644 --- a/area_darwin.m +++ b/area_darwin.m @@ -56,6 +56,12 @@ extern NSRect dummyRect; return YES; } +// this will have the Area receive a click that switches to the Window it is in from another one +- (BOOL)acceptsFirstMouse:(NSEvent *)e +{ + return YES; +} + - (void)retrack { trackingArea = [[NSTrackingArea alloc] |
