diff options
author | Alan Third <alan@idiocy.org> | 2021-06-23 16:07:12 +0100 |
---|---|---|
committer | Alan Third <alan@idiocy.org> | 2021-07-31 11:13:05 +0100 |
commit | 12c5ca4d825496b3c7304b75ab82a6fabdc2023d (patch) | |
tree | c44b4d0cdf3651234819ca3c57c3258b7116b11b /src/nsmenu.m | |
parent | 5a48c99696275d896e24db16f1cd0f38569c7fca (diff) | |
download | emacs-12c5ca4d825496b3c7304b75ab82a6fabdc2023d.tar.gz |
Fix some macOS problems
* src/nsmenu.m (update_frame_tool_bar): Make sure the toolbar isn't
displayed when it's not supposed to be.
* src/nsterm.m ([EmacsView layoutSublayersOfLayer:]): Reinstate code
intended to prevent a crash when running redisplay.
Diffstat (limited to 'src/nsmenu.m')
-rw-r--r-- | src/nsmenu.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index 673c0423d04..bb0dd2634d8 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -1089,10 +1089,10 @@ update_frame_tool_bar (struct frame *f) #undef TOOLPROP } - if (![toolbar isVisible]) + if ([toolbar isVisible] != FRAME_EXTERNAL_TOOL_BAR (f)) { f->output_data.ns->in_animation = 1; - [toolbar setVisible: YES]; + [toolbar setVisible: FRAME_EXTERNAL_TOOL_BAR (f)]; f->output_data.ns->in_animation = 0; } |