aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw
diff options
context:
space:
mode:
authorMartin Palma <m@palma.bz>2020-02-03 20:59:58 +0100
committerGitHub <noreply@github.com>2020-02-03 14:59:58 -0500
commitf66f0a587b48337388296c8f1820f9b3dbfd0085 (patch)
tree9ab0498d8eb16f182153b699f633e829f1bf2e76 /src/cmd/devdraw
parent4197af4122bc06cf4062ca2d1d5bc8f973e37cf1 (diff)
downloadplan9port-f66f0a587b48337388296c8f1820f9b3dbfd0085.tar.gz
plan9port-f66f0a587b48337388296c8f1820f9b3dbfd0085.tar.bz2
plan9port-f66f0a587b48337388296c8f1820f9b3dbfd0085.zip
devdraw: fix `cmd-r` to toggle retina vs. non-retina mode on macOS (#361)
and not unexpectedly quitting an application. Fixes #360
Diffstat (limited to 'src/cmd/devdraw')
-rw-r--r--src/cmd/devdraw/mac-screen.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/devdraw/mac-screen.m b/src/cmd/devdraw/mac-screen.m
index dedbfb84..c6e58341 100644
--- a/src/cmd/devdraw/mac-screen.m
+++ b/src/cmd/devdraw/mac-screen.m
@@ -510,7 +510,7 @@ void
rpc_resizeimg(Client *c)
{
DrawView *view = (__bridge DrawView*)c->view;
- dispatch_sync(dispatch_get_main_queue(), ^(void){
+ dispatch_async(dispatch_get_main_queue(), ^(void){
[view resizeimg];
});
}