Skip to content

Commit

Permalink
devdraw: fix cmd-r to toggle retina vs. non-retina mode on macOS (#361
Browse files Browse the repository at this point in the history
)

and not unexpectedly quitting an application.

Fixes #360
  • Loading branch information
palmamartin committed Feb 3, 2020
1 parent 4197af4 commit f66f0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/devdraw/mac-screen.m
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ - (void)flush:(Rectangle)r {
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];
});
}
Expand Down

0 comments on commit f66f0a5

Please sign in to comment.