mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-04 16:58:21 +00:00
Merge branch 'revert' of https://github.com/zzhaolei/kitty
This commit is contained in:
commit
087b8c35c4
2 changed files with 1 additions and 14 deletions
|
|
@ -3910,18 +3910,6 @@ apply_titlebar_color_settings(_GLFWwindow *window) {
|
|||
#undef tc
|
||||
}
|
||||
|
||||
static void
|
||||
apply_window_corner_curve(_GLFWwindow *window) {
|
||||
if (!window || !window->decorated) return;
|
||||
if (@available(macOS 26.0, *)) {
|
||||
GLFWWindow *nsw = window->ns.object;
|
||||
NSView *frame_view = nsw.contentView.superview;
|
||||
CALayer *layer = frame_view.layer;
|
||||
if (!layer) return;
|
||||
layer.cornerCurve = kCACornerCurveContinuous;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GLFWAPI void
|
||||
glfwCocoaSetWindowLevel(GLFWwindow *w, const char *level_spec) {
|
||||
|
|
@ -4064,7 +4052,6 @@ glfwCocoaSetWindowChrome(
|
|||
if (desired_mask != current_style_mask) { [nsw setStyleMask:desired_mask]; }
|
||||
#undef tc
|
||||
apply_titlebar_color_settings(window);
|
||||
apply_window_corner_curve(window);
|
||||
|
||||
// HACK: Changing the style mask can cause the first responder to be cleared
|
||||
[nsw makeFirstResponder:window->ns.view];
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -1213,7 +1213,7 @@ def glfw_init_env(
|
|||
|
||||
elif module == 'cocoa':
|
||||
ans.cppflags.append('-DGL_SILENCE_DEPRECATION')
|
||||
for f_ in 'Cocoa IOKit CoreFoundation CoreVideo QuartzCore UniformTypeIdentifiers'.split():
|
||||
for f_ in 'Cocoa IOKit CoreFoundation CoreVideo UniformTypeIdentifiers'.split():
|
||||
ans.ldpaths.extend(('-framework', f_))
|
||||
|
||||
elif module == 'wayland':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue