mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-29 00:31:01 -08:00
Fix crash in GC on macOS (bug#57751)
* src/nsterm.m ([EmacsView windowDidMove:]): Initialize input_event.
This commit is contained in:
parent
7ec31d3222
commit
e3b79c641e
1 changed files with 2 additions and 1 deletions
|
|
@ -7901,7 +7901,6 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action)
|
|||
NSRect r = [win frame];
|
||||
NSArray *screens = [NSScreen screens];
|
||||
NSScreen *screen = [screens objectAtIndex: 0];
|
||||
struct input_event ie;
|
||||
|
||||
NSTRACE ("[EmacsView windowDidMove:]");
|
||||
|
||||
|
|
@ -7917,6 +7916,8 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action)
|
|||
|
||||
if (emacs_event)
|
||||
{
|
||||
struct input_event ie;
|
||||
EVENT_INIT (ie);
|
||||
ie.kind = MOVE_FRAME_EVENT;
|
||||
XSETFRAME (ie.frame_or_window, emacsframe);
|
||||
XSETINT (ie.x, emacsframe->left_pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue