Skip to content

Commit 3e424a5

Browse files
dmitshurgopherbot
authored andcommitted
shiny/driver/gldriver: stop activating regardless of the current app
Documentation for NSApplicationActivateIgnoringOtherApps warns: > Important: You should rarely pass this flag because stealing > key focus produces a poor user experience. The flag is also deprecated and no longer has effect in macOS 14. Stop setting it. Change-Id: I8b8794332b54445866e038d9537a4b0eb4e75149 Cq-Include-Trybots: luci.golang.try:x_exp-gotip-darwin-amd64_14 Reviewed-on: https://go-review.googlesource.com/c/exp/+/532581 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 9212866 commit 3e424a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiny/driver/gldriver/cocoa.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ @interface AppDelegate : NSObject<NSApplicationDelegate>
233233
@implementation AppDelegate
234234
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
235235
driverStarted();
236-
[[NSRunningApplication currentApplication] activateWithOptions:(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];
236+
[[NSRunningApplication currentApplication] activateWithOptions:NSApplicationActivateAllWindows];
237237
}
238238

239239
- (void)applicationWillTerminate:(NSNotification *)aNotification {

0 commit comments

Comments
 (0)