Skip to content

Commit db66343

Browse files
committed
Merge pull request #106317 from stuartcarnie/sgc_macos_first_click
macOS: Process first click event without requiring focus
2 parents 8b93b67 + 544ab4c commit db66343

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform/macos/godot_content_view.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ - (void)displayLayer:(CALayer *)layer {
6868

6969
@implementation GodotContentView
7070

71+
- (BOOL)acceptsFirstMouse:(NSEvent *)event {
72+
return YES;
73+
}
74+
7175
- (void)setFrameSize:(NSSize)newSize {
7276
DisplayServerMacOS *ds = (DisplayServerMacOS *)DisplayServer::get_singleton();
7377
if (ds && ds->has_window(window_id)) {

0 commit comments

Comments
 (0)