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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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