aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Möllmann2022-09-15 15:50:12 +0200
committerGerd Möllmann2022-09-16 07:17:47 +0200
commite3b79c641e04a9e8681e7e27db3db3e4beec0fa4 (patch)
treed3c5fc1ca1fe82b78c334604424e52d5fa3ca949 /src
parent7ec31d32222cdad695bc8324414880be5ca20201 (diff)
downloademacs-e3b79c641e04a9e8681e7e27db3db3e4beec0fa4.tar.gz
emacs-e3b79c641e04a9e8681e7e27db3db3e4beec0fa4.zip
Fix crash in GC on macOS (bug#57751)
* src/nsterm.m ([EmacsView windowDidMove:]): Initialize input_event.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index b8b4e66cd11..44979c7c04e 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7901,7 +7901,6 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action)
7901 NSRect r = [win frame]; 7901 NSRect r = [win frame];
7902 NSArray *screens = [NSScreen screens]; 7902 NSArray *screens = [NSScreen screens];
7903 NSScreen *screen = [screens objectAtIndex: 0]; 7903 NSScreen *screen = [screens objectAtIndex: 0];
7904 struct input_event ie;
7905 7904
7906 NSTRACE ("[EmacsView windowDidMove:]"); 7905 NSTRACE ("[EmacsView windowDidMove:]");
7907 7906
@@ -7917,6 +7916,8 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action)
7917 7916
7918 if (emacs_event) 7917 if (emacs_event)
7919 { 7918 {
7919 struct input_event ie;
7920 EVENT_INIT (ie);
7920 ie.kind = MOVE_FRAME_EVENT; 7921 ie.kind = MOVE_FRAME_EVENT;
7921 XSETFRAME (ie.frame_or_window, emacsframe); 7922 XSETFRAME (ie.frame_or_window, emacsframe);
7922 XSETINT (ie.x, emacsframe->left_pos); 7923 XSETINT (ie.x, emacsframe->left_pos);