diff options
author | David Robillard <d@drobilla.net> | 2019-07-23 17:11:18 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-23 20:28:56 +0200 |
commit | 18b6722f5439b9f13273bee120c6de5f8502691b (patch) | |
tree | e561846b56b3ef9b946f93dbdd72b5c6c0a292bf | |
parent | ebbf1568cc8fce3b464abf7cf69d7fa6e455928e (diff) |
Mac: Give new child views focus on creation
-rw-r--r-- | pugl/pugl_osx.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index fb45fe1..5febeb7 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -671,6 +671,7 @@ puglCreateWindow(PuglView* view, const char* title) NSView* pview = (NSView*)view->parent; [pview addSubview:impl->glview]; [impl->glview setHidden:NO]; + [[impl->glview window] makeFirstResponder:impl->glview]; } else { NSString* titleString = [[NSString alloc] initWithBytes:title |