Mercurial > emacs
comparison src/xterm.c @ 2468:35aa32e1a003
* 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.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 07 Apr 1993 14:57:22 +0000 |
parents | b6c62e4abf59 |
children | 86c8a6e08fd4 |
comparison
equal
deleted
inserted
replaced
2467:a3bdf5ac2e9d | 2468:35aa32e1a003 |
---|---|
157 Display *x_current_display; | 157 Display *x_current_display; |
158 | 158 |
159 /* The cursor to use for vertical scroll bars on x_current_display. */ | 159 /* The cursor to use for vertical scroll bars on x_current_display. */ |
160 static Cursor x_vertical_scroll_bar_cursor; | 160 static Cursor x_vertical_scroll_bar_cursor; |
161 | 161 |
162 /* Frame being updated by update_frame. */ | 162 /* Frame being updated by update_frame. This is declared in term.c. */ |
163 /* This is set by XTupdate_begin and looked at by all the | 163 This is set by update_begin and looked at by all the |
164 XT functions. It is zero while not inside an update. | 164 XT functions. It is zero while not inside an update. |
165 In that case, the XT functions assume that `selected_frame' | 165 In that case, the XT functions assume that `selected_frame' |
166 is the frame to apply to. */ | 166 is the frame to apply to. */ |
167 | 167 extern struct frame *updating_frame; |
168 static struct frame *updating_frame; | |
169 | 168 |
170 /* The frame (if any) which has the X window that has keyboard focus. | 169 /* The frame (if any) which has the X window that has keyboard focus. |
171 Zero if none. This is examined by Ffocus_frame in frame.c. Note | 170 Zero if none. This is examined by Ffocus_frame in frame.c. Note |
172 that a mere EnterNotify event can set this; if you need to know the | 171 that a mere EnterNotify event can set this; if you need to know the |
173 last frame specified in a FocusIn or FocusOut event, use | 172 last frame specified in a FocusIn or FocusOut event, use |
290 int mask; | 289 int mask; |
291 | 290 |
292 if (f == 0) | 291 if (f == 0) |
293 abort (); | 292 abort (); |
294 | 293 |
295 updating_frame = f; | |
296 flexlines = f->height; | 294 flexlines = f->height; |
297 highlight = 0; | 295 highlight = 0; |
298 | 296 |
299 BLOCK_INPUT; | 297 BLOCK_INPUT; |
300 #ifndef HAVE_X11 | 298 #ifndef HAVE_X11 |
323 x_do_pending_expose (); | 321 x_do_pending_expose (); |
324 #endif /* HAVE_X11 */ | 322 #endif /* HAVE_X11 */ |
325 | 323 |
326 x_display_cursor (f, 1); | 324 x_display_cursor (f, 1); |
327 | 325 |
328 updating_frame = 0; | |
329 XFlushQueue (); | 326 XFlushQueue (); |
330 UNBLOCK_INPUT; | 327 UNBLOCK_INPUT; |
331 } | 328 } |
332 | 329 |
333 /* External interface to control of standout mode. | 330 /* External interface to control of standout mode. |