summaryrefslogtreecommitdiff
path: root/sysdata_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-10 21:03:04 -0400
committerPietro Gagliardi <[email protected]>2014-05-10 21:03:04 -0400
commitcc01981999df5f60bac36adf5039c752e10384e7 (patch)
treecb0f02854c48aa8c59c1952a9ddcb43b2917f235 /sysdata_darwin.go
parent5819e52f8de793d781c8de86d6ae16aa832fdfe1 (diff)
Added tracking areas to Area on Mac OS X so mouse move events can work; they work now.
Diffstat (limited to 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go
index 08ca202..0bcf316 100644
--- a/sysdata_darwin.go
+++ b/sysdata_darwin.go
@@ -50,7 +50,6 @@ var (
_initWithContentRect = sel_getUid("initWithContentRect:styleMask:backing:defer:")
_initWithFrame = sel_getUid("initWithFrame:")
_setDelegate = sel_getUid("setDelegate:")
- _setAcceptsMouseMovedEvents = sel_getUid("setAcceptsMouseMovedEvents:")
_makeKeyAndOrderFront = sel_getUid("makeKeyAndOrderFront:")
_orderOut = sel_getUid("orderOut:")
_setHidden = sel_getUid("setHidden:")
@@ -147,8 +146,7 @@ var classTypes = [nctypes]*classData{
C.uintptr_t(_NSBackingStoreBuffered),
C.BOOL(C.YES)) // defer creation of device until we show the window
C.objc_msgSend_id(win, _setDelegate, appDelegate)
- // this is needed for Areas in the window to receive mouse move events
-// C.objc_msgSend_bool(win, _setAcceptsMouseMovedEvents, C.BOOL(C.YES))
+ // we do not need setAcceptsMouseMovedEvents: here since we are using a tracking rect in Areas for that
return win
},
show: func(what C.id) {