diff options
author | Zhi <yfwz100@yeah.net> | 2021-06-15 00:06:35 +0800 |
---|---|---|
committer | Zhi <yfwz100@yeah.net> | 2021-06-15 00:09:46 +0800 |
commit | 5776fcd95517cf7536147686a09d9753c527f46e (patch) | |
tree | 98b05a1159fb4d7dfec07ec970f32abcc49f4bec /gdk | |
parent | 970bb804deb9b41de3053aeac57f3c091413e7b7 (diff) | |
download | gtk+-5776fcd95517cf7536147686a09d9753c527f46e.tar.gz |
fix: make the new nsview as the first responder.
Make the new view as the first responder(focused) so the new view can
accept events from input method.
Fixes #3968.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/macos/gdkmacosglcontext.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/macos/gdkmacosglcontext.c b/gdk/macos/gdkmacosglcontext.c index b785beadc0..e4ef4abcb1 100644 --- a/gdk/macos/gdkmacosglcontext.c +++ b/gdk/macos/gdkmacosglcontext.c @@ -145,6 +145,7 @@ ensure_gl_view (GdkMacosGLContext *self) [nsview setPostsFrameChangedNotifications: YES]; [nsview setNeedsDisplay:YES]; [nswindow setContentView:nsview]; + [nswindow makeFirstResponder:nsview]; [nsview release]; if (self->dummy_view != NULL) |