diff options
author | Jim Blandy <[email protected]> | 1993-04-07 14:57:22 +0000 |
---|---|---|
committer | Jim Blandy <[email protected]> | 1993-04-07 14:57:22 +0000 |
commit | d0386f2a50b5a663f3a59554861e37c6cb8c4be6 (patch) | |
tree | d741d4395fa0246b42828f7a36e447b3e98eb29c /src | |
parent | 5119b4121eb107253e848db189b0935525ee0824 (diff) |
* xterm.c (updating_frame): Declare this extern instead of static,
so it's the same variable as the updating_frame in term.c.
(XTupdate_begin, XTupdate_end): Don't bother to set
updating_frame; the term.c functions take care of that for us.
Diffstat (limited to 'src')
-rw-r--r-- | src/xterm.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c index c84bd6ebd7..e0eff77dfb 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -159,13 +159,12 @@ Display *x_current_display; /* The cursor to use for vertical scroll bars on x_current_display. */ static Cursor x_vertical_scroll_bar_cursor; -/* Frame being updated by update_frame. */ -/* This is set by XTupdate_begin and looked at by all the +/* Frame being updated by update_frame. This is declared in term.c. */ + This is set by update_begin and looked at by all the XT functions. It is zero while not inside an update. In that case, the XT functions assume that `selected_frame' is the frame to apply to. */ - -static struct frame *updating_frame; +extern struct frame *updating_frame; /* The frame (if any) which has the X window that has keyboard focus. Zero if none. This is examined by Ffocus_frame in frame.c. Note @@ -292,7 +291,6 @@ XTupdate_begin (f) if (f == 0) abort (); - updating_frame = f; flexlines = f->height; highlight = 0; @@ -325,7 +323,6 @@ XTupdate_end (f) x_display_cursor (f, 1); - updating_frame = 0; XFlushQueue (); UNBLOCK_INPUT; } |