mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-11 16:52:40 -07:00
Some fixes for the GNUstep build
* src/nsterm.m ([EmacsView updateFramePosition]): Dereference emacsframe. ([EmacsView copyRect:to:]): Dereference emacsframe.
This commit is contained in:
parent
b404111eec
commit
1ad6b8da6c
1 changed files with 14 additions and 2 deletions
16
src/nsterm.m
16
src/nsterm.m
|
|
@ -8067,7 +8067,11 @@ ns_in_echo_area (void)
|
|||
struct input_event ie;
|
||||
EVENT_INIT (ie);
|
||||
ie.kind = MOVE_FRAME_EVENT;
|
||||
XSETFRAME (ie.frame_or_window, emacsframe);
|
||||
#ifdef HAVE_MPS
|
||||
XSETFRAME (ie.frame_or_window, *emacsframe);
|
||||
#else
|
||||
XSETFRAME (ie.frame_or_window, emacsframe);
|
||||
#endif
|
||||
XSETINT (ie.x, f->left_pos);
|
||||
XSETINT (ie.y, f->top_pos);
|
||||
kbd_buffer_store_event (&ie);
|
||||
|
|
@ -9149,12 +9153,20 @@ ns_in_echo_area (void)
|
|||
#else
|
||||
hide_bell(); // Ensure the bell image isn't scrolled.
|
||||
|
||||
ns_focus (emacsframe, &dstRect, 1);
|
||||
#ifdef HAVE_MPS
|
||||
ns_focus (*emacsframe, &dstRect, 1);
|
||||
#else
|
||||
ns_focus (*emacsframe, &dstRect, 1);
|
||||
#endif
|
||||
[self scrollRect: srcRect
|
||||
by: NSMakeSize (dstRect.origin.x - srcRect.origin.x,
|
||||
dstRect.origin.y - srcRect.origin.y)];
|
||||
#ifdef HAVE_MPS
|
||||
ns_unfocus (*emacsframe);
|
||||
#else
|
||||
ns_unfocus (emacsframe);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue