comparison src/xterm.h @ 11538:d0bd2102adbc

(struct x_display_info): New members x_focus_frame, x_focus_event_frame, x_highlight_frame, replacing global vars.
author Karl Heuer <kwzh@gnu.org>
date Mon, 24 Apr 1995 18:28:50 +0000
parents 800e56de3795
children 00bf6e6098d4
comparison
equal deleted inserted replaced
11537:9d4df3cf95b3 11538:d0bd2102adbc
128 128
129 #ifdef USE_X_TOOLKIT 129 #ifdef USE_X_TOOLKIT
130 extern struct frame *x_any_window_to_frame (); 130 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
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 133
139 extern Visual *select_visual (); 134 extern Visual *select_visual ();
140 135
141 enum text_cursor_kinds { 136 enum text_cursor_kinds {
142 filled_box_cursor, hollow_box_cursor, bar_cursor 137 filled_box_cursor, hollow_box_cursor, bar_cursor
291 Xatom_ATOM_PAIR; 286 Xatom_ATOM_PAIR;
292 #ifdef MULTI_KBOARD 287 #ifdef MULTI_KBOARD
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. */
299 extern struct x_display_info *x_display_list; 314 extern struct x_display_info *x_display_list;
300 315