summaryrefslogtreecommitdiff
path: root/redo/area_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-13 14:02:10 -0400
committerPietro Gagliardi <[email protected]>2014-08-13 14:02:10 -0400
commit35228385c11ec939ebc29dbaa3d653bcad6cd3b4 (patch)
tree64485c163dc85533acc7e180aebf833eb5c80b52 /redo/area_darwin.go
parentb01c65394202a5377313afe08cd5fb56f0903831 (diff)
Kinda sorta maybe implemented AreaHandler.Defocus() on Mac OS X. Starting to think I should just not allow Areas to be focused out.
Diffstat (limited to 'redo/area_darwin.go')
-rw-r--r--redo/area_darwin.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/redo/area_darwin.go b/redo/area_darwin.go
index c4c3d26..ff277e8 100644
--- a/redo/area_darwin.go
+++ b/redo/area_darwin.go
@@ -189,6 +189,12 @@ func areaView_flagsChanged(self C.id, e C.id, data unsafe.Pointer) {
sendKeyEvent(self, ke, data)
}
+//export areaView_defocuses
+func areaView_defocuses(data unsafe.Pointer) C.BOOL {
+ a := (*area)(data)
+ return toBOOL(a.handler.Defocuses())
+}
+
func (a *area) id() C.id {
return a._id
}