From 128a1ec5243ebd5e84d9d9b32fe8a47833e75147 Mon Sep 17 00:00:00 2001 From: IoI_xD Date: Mon, 9 Mar 2026 15:07:46 -0700 Subject: [PATCH] mac: 'implement' tool windows --- src/backend/cocoa.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/backend/cocoa.m b/src/backend/cocoa.m index 5aa52bc..56a68fd 100644 --- a/src/backend/cocoa.m +++ b/src/backend/cocoa.m @@ -294,11 +294,15 @@ static NSPoint pointFlip(NSPoint point) { [pool release]; break; } + /* run through the switch case on ev.type, before calling sendEvent on any + * events we handle */ [self eventProcess:ev]; [pool release]; } [self sendClipboardEvent]; + + [self->application updateWindows]; }; - (void)eventProcess:(NSEvent *)ev { @@ -721,6 +725,11 @@ static NSPoint pointFlip(NSPoint point) { // forType:NSPasteboardTypeString]; [pool release]; }; - (void)makeToolWindow { + /* If my understand of what a "tool window" usually is is correct then I + * highly doubt the Mac OS has this and if they did they probably outright + * removed it along time ago is this kind of conflicts with modern UX. So + * we'll just make it borderless idgaf */ + [self makeBorderless:MwTRUE]; }; - (void)getCursorCoord:(MwPoint *)point { NSPoint p = [NSEvent mouseLocation];