From f4867928b41be300ee15f5f7f776485403fb4196 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 Sep 2025 17:00:18 +0530 Subject: [PATCH] DRYer --- glfw/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 78364a10f..78f67ba35 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -779,6 +779,7 @@ - (instancetype)initWithGlfwWindow:(_GLFWwindow *)initWindow markedRect = NSMakeRect(0.0, 0.0, 0.0, 0.0); input_source_at_last_key_event = nil; in_key_handler = 0; + self.identifier = @"kitty-content-view"; [self updateTrackingAreas]; [self registerForDraggedTypes:@[NSPasteboardTypeFileURL, NSPasteboardTypeString]]; @@ -3298,7 +3299,6 @@ void clear_title_bar_background_views(NSWindow *window) { // add an extra view that just renders the background color under the transparent titlebar NSView *contentView = window.contentView, *titlebarContainer = contentView ? contentView.superview : nil; if (!titlebarContainer) return; - contentView.identifier = @"kitty-content-view"; for (NSView *subview in [titlebarContainer viewsWithIdentifier:tag]) [subview removeFromSuperview]; if (!backgroundColor) return; const CGFloat height = title_bar_and_tool_bar_height(window);