mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
Move to using upstream glfw fix for mojave initial render issue
This commit is contained in:
@@ -568,16 +568,6 @@ static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL;
|
|||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void)setLayer:(CALayer*)layer
|
|
||||||
{
|
|
||||||
[super setLayer:layer];
|
|
||||||
if (window->context.client != GLFW_NO_API) {
|
|
||||||
// this is needed for initial rendering on mojave, see
|
|
||||||
// https://github.com/kovidgoyal/kitty/issues/887
|
|
||||||
[window->context.nsgl.object update];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (_GLFWwindow*)glfwWindow {
|
- (_GLFWwindow*)glfwWindow {
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
@@ -602,6 +592,14 @@ static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL;
|
|||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)updateLayer
|
||||||
|
{
|
||||||
|
if (window->context.client != GLFW_NO_API)
|
||||||
|
[window->context.nsgl.object update];
|
||||||
|
|
||||||
|
_glfwInputWindowDamage(window);
|
||||||
|
}
|
||||||
|
|
||||||
- (id)makeBackingLayer
|
- (id)makeBackingLayer
|
||||||
{
|
{
|
||||||
if (window->ns.layer)
|
if (window->ns.layer)
|
||||||
|
|||||||
Reference in New Issue
Block a user