diff options
author | David Robillard <d@drobilla.net> | 2019-07-24 23:46:26 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:32:16 +0200 |
commit | da0f76d22df1813a386f2b5e35ebe637da78889f (patch) | |
tree | d49ed1eabf44538fcbdf24e42b90b5051d3263a3 /pugl/detail/mac.m | |
parent | e148e8f3646ae756254879f2df015431bbd036ed (diff) | |
download | pugl-da0f76d22df1813a386f2b5e35ebe637da78889f.tar.gz pugl-da0f76d22df1813a386f2b5e35ebe637da78889f.tar.bz2 pugl-da0f76d22df1813a386f2b5e35ebe637da78889f.zip |
Fix puglGrabFocus() to work between parent and children
Diffstat (limited to 'pugl/detail/mac.m')
-rw-r--r-- | pugl/detail/mac.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m index 5b332f1..a438701 100644 --- a/pugl/detail/mac.m +++ b/pugl/detail/mac.m @@ -772,7 +772,10 @@ puglDestroy(PuglView* view) void puglGrabFocus(PuglView* view) { - [view->impl->window makeKeyWindow]; + NSWindow* window = [view->impl->wrapperView window]; + + [window makeKeyWindow]; + [window makeFirstResponder:view->impl->wrapperView]; } void |