aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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