mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
macOS: Fix changing window chrome/colors while in traditional fullscreen causing the titlebar to become visible
Fixes #7469
This commit is contained in:
@@ -100,6 +100,8 @@ Detailed list of changes
|
|||||||
|
|
||||||
- Add option :option:`kitten @ detach-window --stay-in-tab` to keep focus in the currently active tab when moving windows (:iss:`7468`)
|
- Add option :option:`kitten @ detach-window --stay-in-tab` to keep focus in the currently active tab when moving windows (:iss:`7468`)
|
||||||
|
|
||||||
|
- macOS: Fix changing window chrome/colors while in traditional fullscreen causing the titlebar to become visible (:iss:`7469`)
|
||||||
|
|
||||||
0.34.1 [2024-04-19]
|
0.34.1 [2024-04-19]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -3161,7 +3161,11 @@ GLFWAPI void glfwCocoaSetWindowChrome(GLFWwindow *w, unsigned int color, bool us
|
|||||||
// event. See https://github.com/kovidgoyal/kitty/issues/7106
|
// event. See https://github.com/kovidgoyal/kitty/issues/7106
|
||||||
NSWindowStyleMask fsmask = current_style_mask & NSWindowStyleMaskFullScreen;
|
NSWindowStyleMask fsmask = current_style_mask & NSWindowStyleMaskFullScreen;
|
||||||
window->ns.pre_full_screen_style_mask = getStyleMask(window);
|
window->ns.pre_full_screen_style_mask = getStyleMask(window);
|
||||||
|
if (in_fullscreen && window->ns.in_traditional_fullscreen) {
|
||||||
|
[window->ns.object setStyleMask:NSWindowStyleMaskBorderless];
|
||||||
|
} else {
|
||||||
[window->ns.object setStyleMask:window->ns.pre_full_screen_style_mask | fsmask];
|
[window->ns.object setStyleMask:window->ns.pre_full_screen_style_mask | fsmask];
|
||||||
|
}
|
||||||
// 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
|
||||||
[window->ns.object makeFirstResponder:window->ns.view];
|
[window->ns.object makeFirstResponder:window->ns.view];
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user