diff options
| author | Karl Heuer | 1995-04-24 18:28:50 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-04-24 18:28:50 +0000 |
| commit | 2820e30882955b60736729fe8387ebb952a8de1b (patch) | |
| tree | 9c0d6952d7a2c2ae1b4701c7845eea6dcf09d216 /src | |
| parent | 0d17d2828c7e9e5c737f5d15581d2d59b39dc57c (diff) | |
| download | emacs-2820e30882955b60736729fe8387ebb952a8de1b.tar.gz emacs-2820e30882955b60736729fe8387ebb952a8de1b.zip | |
(struct x_display_info): New members x_focus_frame,
x_focus_event_frame, x_highlight_frame, replacing global vars.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/xterm.h b/src/xterm.h index 8cec2d92bbd..c3c974c1fd9 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -131,11 +131,6 @@ extern struct frame *x_any_window_to_frame (); | |||
| 131 | extern struct frame *x_top_window_to_frame (); | 131 | extern struct frame *x_top_window_to_frame (); |
| 132 | #endif | 132 | #endif |
| 133 | 133 | ||
| 134 | /* The frame (if any) which has the X window that has keyboard focus. | ||
| 135 | Zero if none. This is examined by Ffocus_frame in xfns.c */ | ||
| 136 | |||
| 137 | extern struct frame *x_focus_frame; | ||
| 138 | |||
| 139 | extern Visual *select_visual (); | 134 | extern Visual *select_visual (); |
| 140 | 135 | ||
| 141 | enum text_cursor_kinds { | 136 | enum text_cursor_kinds { |
| @@ -293,6 +288,26 @@ struct x_display_info | |||
| 293 | struct kboard *kboard; | 288 | struct kboard *kboard; |
| 294 | #endif | 289 | #endif |
| 295 | int cut_buffers_initialized; /* Whether we're sure they all exist */ | 290 | int cut_buffers_initialized; /* Whether we're sure they all exist */ |
| 291 | |||
| 292 | /* The frame (if any) which has the X window that has keyboard focus. | ||
| 293 | Zero if none. This is examined by Ffocus_frame in xfns.c. Note | ||
| 294 | that a mere EnterNotify event can set this; if you need to know the | ||
| 295 | last frame specified in a FocusIn or FocusOut event, use | ||
| 296 | x_focus_event_frame. */ | ||
| 297 | struct frame *x_focus_frame; | ||
| 298 | |||
| 299 | /* The last frame mentioned in a FocusIn or FocusOut event. This is | ||
| 300 | separate from x_focus_frame, because whether or not LeaveNotify | ||
| 301 | events cause us to lose focus depends on whether or not we have | ||
| 302 | received a FocusIn event for it. */ | ||
| 303 | struct frame *x_focus_event_frame; | ||
| 304 | |||
| 305 | /* The frame which currently has the visual highlight, and should get | ||
| 306 | keyboard input (other sorts of input have the frame encoded in the | ||
| 307 | event). It points to the X focus frame's selected window's | ||
| 308 | frame. It differs from x_focus_frame when we're using a global | ||
| 309 | minibuffer. */ | ||
| 310 | struct frame *x_highlight_frame; | ||
| 296 | }; | 311 | }; |
| 297 | 312 | ||
| 298 | /* This is a chain of structures for all the X displays currently in use. */ | 313 | /* This is a chain of structures for all the X displays currently in use. */ |