Merge branch 'fix-fullscreen' of https://github.com/page-down/kitty

This commit is contained in:
Kovid Goyal 2021-12-13 08:38:06 +05:30
commit 547e4a3d7e
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1644,6 +1644,9 @@ - (void)toggleFullScreen:(nullable id)sender
[self setResizeIncrements:NSMakeSize(1.0, 1.0)];
[super toggleFullScreen:sender];
[self setResizeIncrements:original];
// When the window decoration is hidden, toggling fullscreen causes the style mask to be changed,
// and causes the first responder to be cleared.
if (glfw_window && !glfw_window->decorated && glfw_window->ns.view) [self makeFirstResponder:glfw_window->ns.view];
}
@end