devdraw: fix cmd-r to toggle retina vs. non-retina mode on macOS (#361)

and not unexpectedly quitting an application.

Fixes #360
This commit is contained in:
Martin Palma
2020-02-03 20:59:58 +01:00
committed by GitHub
parent 4197af4122
commit f66f0a587b

View File

@@ -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];
});
}