aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/devdraw')
-rw-r--r--src/cmd/devdraw/cocoa-screen.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m
index b2690d15..1e9ba3f8 100644
--- a/src/cmd/devdraw/cocoa-screen.m
+++ b/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*