summaryrefslogtreecommitdiff
path: root/src/nsfns.m
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2021-05-02 11:25:40 +0100
committerAlan Third <alan@idiocy.org>2021-05-02 11:52:45 +0100
commit609d814fdf1e7ab76ec45017bc04087ae41d9bc8 (patch)
tree1dddce3f4edd9ddebb42f6ff92c00eab7d18623e /src/nsfns.m
parentd0d95d161495585c73f881941beda77352517d34 (diff)
downloademacs-609d814fdf1e7ab76ec45017bc04087ae41d9bc8.tar.gz
emacs-609d814fdf1e7ab76ec45017bc04087ae41d9bc8.tar.bz2
emacs-609d814fdf1e7ab76ec45017bc04087ae41d9bc8.zip
Fix crash when resizing GNUstep builds
The toolkit can send far too many resize notifications, so be more careful when we take action after receiving one. * src/nsfns.m (ns_set_tool_bar_lines): Remove unneeded NSTRACE. * src/nsterm.m ([EmacsView viewDidResize:]): Don't report resizes to Emacs when the same change has already been reported and delayed.
Diffstat (limited to 'src/nsfns.m')
-rw-r--r--src/nsfns.m6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nsfns.m b/src/nsfns.m
index 3f05128d363..1f281f75fd4 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -668,11 +668,7 @@ ns_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
}
}
- {
- NSTRACE_MSG ("inhibit:%d", inhibit);
-
- adjust_frame_size (f, -1, -1, 2, false, Qtool_bar_lines);
- }
+ adjust_frame_size (f, -1, -1, 2, false, Qtool_bar_lines);
}
static void