mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00: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 @@ - (void)windowDidMove: sender
|
|||
NSRect r = [win frame];
|
||||
NSArray *screens = [NSScreen screens];
|
||||
NSScreen *screen = [screens objectAtIndex: 0];
|
||||
struct input_event ie;
|
||||
|
||||
NSTRACE ("[EmacsView windowDidMove:]");
|
||||
|
||||
|
|
@ -7917,6 +7916,8 @@ - (void)windowDidMove: sender
|
|||
|
||||
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…
Reference in a new issue