tdevdraw: fix `cmd-r` to toggle retina vs. non-retina mode on macOS (#361) - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit f66f0a587b48337388296c8f1820f9b3dbfd0085
DIR parent 4197af4122bc06cf4062ca2d1d5bc8f973e37cf1
HTML Author: Martin Palma <m@palma.bz>
Date: Mon, 3 Feb 2020 20:59:58 +0100
devdraw: fix `cmd-r` to toggle retina vs. non-retina mode on macOS (#361)
and not unexpectedly quitting an application.
Fixes #360
Diffstat:
M src/cmd/devdraw/mac-screen.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/devdraw/mac-screen.m b/src/cmd/devdraw/mac-screen.m
t@@ -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];
});
}