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.
This commit is contained in:
Zhi 2021-06-15 00:06:35 +08:00 committed by Matthias Clasen
parent 741603c838
commit f9c7b68853

View File

@ -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)