aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_osx.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-23 17:11:18 +0200
committerDavid Robillard <d@drobilla.net>2019-07-23 20:28:56 +0200
commit18b6722f5439b9f13273bee120c6de5f8502691b (patch)
treee561846b56b3ef9b946f93dbdd72b5c6c0a292bf /pugl/pugl_osx.m
parentebbf1568cc8fce3b464abf7cf69d7fa6e455928e (diff)
downloadpugl-18b6722f5439b9f13273bee120c6de5f8502691b.tar.gz
pugl-18b6722f5439b9f13273bee120c6de5f8502691b.tar.bz2
pugl-18b6722f5439b9f13273bee120c6de5f8502691b.zip
Mac: Give new child views focus on creation
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r--pugl/pugl_osx.m1
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