aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2021-01-05 23:35:33 -0500
committerRuss Cox <rsc@swtch.com>2021-01-05 23:37:04 -0500
commit7f6458b045e04b97dd06b3171ac67e9ecde32429 (patch)
tree2e27d03aec0a07e43810e3711cc27d26030739f7 /src/cmd/devdraw
parentac487c754e009b0f3c01c2a8ad5bda2143da4a6b (diff)
downloadplan9port-7f6458b045e04b97dd06b3171ac67e9ecde32429.tar.gz
plan9port-7f6458b045e04b97dd06b3171ac67e9ecde32429.tar.bz2
plan9port-7f6458b045e04b97dd06b3171ac67e9ecde32429.zip
stats: add threadmaybackground
Diffstat (limited to 'src/cmd/devdraw')
-rw-r--r--src/cmd/devdraw/mac-screen.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/devdraw/mac-screen.m b/src/cmd/devdraw/mac-screen.m
index ad9c029e..9e51eec6 100644
--- a/src/cmd/devdraw/mac-screen.m
+++ b/src/cmd/devdraw/mac-screen.m
@@ -238,11 +238,14 @@ rpc_attach(Client *c, char *label, char *winsize)
char *s;
NSArray *allDevices;
- const NSWindowStyleMask Winstyle = NSWindowStyleMaskTitled
+ NSWindowStyleMask Winstyle = NSWindowStyleMaskTitled
| NSWindowStyleMaskClosable
| NSWindowStyleMaskMiniaturizable
| NSWindowStyleMaskResizable;
+ if(label == nil || *label == '\0')
+ Winstyle &= ~NSWindowStyleMaskTitled;
+
s = winsize;
sr = [[NSScreen mainScreen] frame];
r = [[NSScreen mainScreen] visibleFrame];