From f66f0a587b48337388296c8f1820f9b3dbfd0085 Mon Sep 17 00:00:00 2001 From: Martin Palma Date: Mon, 3 Feb 2020 20:59:58 +0100 Subject: devdraw: fix `cmd-r` to toggle retina vs. non-retina mode on macOS (#361) and not unexpectedly quitting an application. Fixes #360 --- src/cmd/devdraw/mac-screen.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]; }); } -- cgit v1.2.3