mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Fix titlebar color not working for opaque windows
As long as titlebar_color is not nil, we need a background view
This commit is contained in:
@@ -3434,7 +3434,7 @@ GLFWAPI void glfwCocoaSetWindowChrome(GLFWwindow *w, unsigned int color, bool us
|
|||||||
} else {
|
} else {
|
||||||
[nsw setStyleMask:window->ns.pre_full_screen_style_mask | fsmask];
|
[nsw setStyleMask:window->ns.pre_full_screen_style_mask | fsmask];
|
||||||
}
|
}
|
||||||
if (background_opacity < 1.0 && !window->ns.titlebar_hidden && window->decorated && titlebar_color != nil && titlebar_transparent) {
|
if (!window->ns.titlebar_hidden && window->decorated && titlebar_color != nil && titlebar_transparent) {
|
||||||
set_title_bar_background(nsw, titlebar_color);
|
set_title_bar_background(nsw, titlebar_color);
|
||||||
} else clear_title_bar_background_views(nsw);
|
} else clear_title_bar_background_views(nsw);
|
||||||
// HACK: Changing the style mask can cause the first responder to be cleared
|
// HACK: Changing the style mask can cause the first responder to be cleared
|
||||||
|
|||||||
Reference in New Issue
Block a user