Merge pull request #106317 from stuartcarnie/sgc_macos_first_click
macOS: Process first click event without requiring focus
This commit is contained in:
@@ -68,6 +68,10 @@
|
||||
|
||||
@implementation GodotContentView
|
||||
|
||||
- (BOOL)acceptsFirstMouse:(NSEvent *)event {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)setFrameSize:(NSSize)newSize {
|
||||
DisplayServerMacOS *ds = (DisplayServerMacOS *)DisplayServer::get_singleton();
|
||||
if (ds && ds->has_window(window_id)) {
|
||||
|
||||
Reference in New Issue
Block a user