Commit Diff


commit - 679d176fea274cd5f9c3a69dd98009a13a153a7d
commit + d3a47e14e5ebf7a4d8ca8c9a3dfe748b93d3663a
blob - b2690d153f36dae9008d6e0e3c5d281382d14c17
blob + 1e9ba3f8370f2eecfdefb7940b14572f9d5cd3ed
--- src/cmd/devdraw/cocoa-screen.m
+++ src/cmd/devdraw/cocoa-screen.m
@@ -98,7 +98,6 @@ threadmain(int argc, char **argv)
 	[NSApplication sharedApplication];
 	[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
 	[NSApp setDelegate:[appdelegate new]];
-	[NSApp activateIgnoringOtherApps:YES];
 	[NSApp run];
 }
 
@@ -345,6 +344,8 @@ makewin(char *s)
 		initWithContentRect:r
 		styleMask:Winstyle
 		backing:NSBackingStoreBuffered defer:NO];
+	[w setTitle:@"devdraw"];
+
 	if(!set)
 		[w center];
 #if OSX_VERSION >= 100700
@@ -366,6 +367,8 @@ makewin(char *s)
 	win.isofs = 0;
 	win.content = [contentview new];
 	[WIN setContentView:win.content];
+
+	topwin();
 }
 
 static Memimage*