aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-15 00:48:51 -0700
committerPaul Eggert2011-04-15 00:48:51 -0700
commit4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9 (patch)
treee993b231bb5555c9c961f5d0b20d90ac76f77bbd /src/xterm.c
parent1963a2e0bb07cc8dee6d27f972f93d9cfd7c6b2d (diff)
parent49093f601b69d91126aefd328ee8f6bfeb797407 (diff)
downloademacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.tar.gz
emacs-4170f62f39edf1ff1e99aec9bfbfe7bbf10e7fc9.zip
Merge from mainline.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/xterm.c b/src/xterm.c
index b3e33b7c0bb..bc847388756 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -306,6 +306,8 @@ enum xembed_message
306 306
307static int x_alloc_nearest_color_1 (Display *, Colormap, XColor *); 307static int x_alloc_nearest_color_1 (Display *, Colormap, XColor *);
308static void x_set_window_size_1 (struct frame *, int, int, int); 308static void x_set_window_size_1 (struct frame *, int, int, int);
309static void x_raise_frame (struct frame *);
310static void x_lower_frame (struct frame *);
309static const XColor *x_color_cells (Display *, int *); 311static const XColor *x_color_cells (Display *, int *);
310static void x_update_window_end (struct window *, int, int); 312static void x_update_window_end (struct window *, int, int);
311 313
@@ -347,9 +349,15 @@ static void x_check_expected_move (struct frame *, int, int);
347static void x_sync_with_move (struct frame *, int, int, int); 349static void x_sync_with_move (struct frame *, int, int, int);
348static int handle_one_xevent (struct x_display_info *, XEvent *, 350static int handle_one_xevent (struct x_display_info *, XEvent *,
349 int *, struct input_event *); 351 int *, struct input_event *);
352#if ! (defined USE_MOTIF || defined USE_X_TOOLKIT)
353static int x_dispatch_event (XEvent *, Display *);
354#endif
350/* Don't declare this NO_RETURN because we want no 355/* Don't declare this NO_RETURN because we want no
351 interference with debugging failing X calls. */ 356 interference with debugging failing X calls. */
352static void x_connection_closed (Display *, const char *); 357static void x_connection_closed (Display *, const char *);
358static void x_wm_set_window_state (struct frame *, int);
359static void x_wm_set_icon_pixmap (struct frame *, int);
360static void x_initialize (void);
353 361
354 362
355/* Flush display of frame F, or of all frames if F is null. */ 363/* Flush display of frame F, or of all frames if F is null. */
@@ -3451,14 +3459,6 @@ x_detect_focus_change (struct x_display_info *dpyinfo, XEvent *event, struct inp
3451} 3459}
3452 3460
3453 3461
3454/* Handle an event saying the mouse has moved out of an Emacs frame. */
3455
3456void
3457x_mouse_leave (struct x_display_info *dpyinfo)
3458{
3459 x_new_focus_frame (dpyinfo, dpyinfo->x_focus_event_frame);
3460}
3461
3462/* The focus has changed, or we have redirected a frame's focus to 3462/* The focus has changed, or we have redirected a frame's focus to
3463 another frame (this happens when a frame uses a surrogate 3463 another frame (this happens when a frame uses a surrogate
3464 mini-buffer frame). Shift the highlight as appropriate. 3464 mini-buffer frame). Shift the highlight as appropriate.
@@ -5659,7 +5659,7 @@ static short temp_buffer[100];
5659/* Set this to nonzero to fake an "X I/O error" 5659/* Set this to nonzero to fake an "X I/O error"
5660 on a particular display. */ 5660 on a particular display. */
5661 5661
5662struct x_display_info *XTread_socket_fake_io_error; 5662static struct x_display_info *XTread_socket_fake_io_error;
5663 5663
5664/* When we find no input here, we occasionally do a no-op command 5664/* When we find no input here, we occasionally do a no-op command
5665 to verify that the X server is still running and we can still talk with it. 5665 to verify that the X server is still running and we can still talk with it.
@@ -6984,6 +6984,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr,
6984 i.e. looping while a popup menu or a dialog is posted. 6984 i.e. looping while a popup menu or a dialog is posted.
6985 6985
6986 Returns the value handle_one_xevent sets in the finish argument. */ 6986 Returns the value handle_one_xevent sets in the finish argument. */
6987#if ! (defined USE_MOTIF || defined USE_X_TOOLKIT)
6988static
6989#endif
6987int 6990int
6988x_dispatch_event (XEvent *event, Display *display) 6991x_dispatch_event (XEvent *event, Display *display)
6989{ 6992{
@@ -8870,7 +8873,7 @@ x_raise_frame (struct frame *f)
8870 8873
8871/* Lower frame F. */ 8874/* Lower frame F. */
8872 8875
8873void 8876static void
8874x_lower_frame (struct frame *f) 8877x_lower_frame (struct frame *f)
8875{ 8878{
8876 if (f->async_visible) 8879 if (f->async_visible)
@@ -9432,7 +9435,7 @@ x_free_frame_resources (struct frame *f)
9432 9435
9433/* Destroy the X window of frame F. */ 9436/* Destroy the X window of frame F. */
9434 9437
9435void 9438static void
9436x_destroy_window (struct frame *f) 9439x_destroy_window (struct frame *f)
9437{ 9440{
9438 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); 9441 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
@@ -9556,7 +9559,7 @@ x_wm_set_size_hint (struct frame *f, long flags, int user_position)
9556 9559
9557/* Used for IconicState or NormalState */ 9560/* Used for IconicState or NormalState */
9558 9561
9559void 9562static void
9560x_wm_set_window_state (struct frame *f, int state) 9563x_wm_set_window_state (struct frame *f, int state)
9561{ 9564{
9562#ifdef USE_X_TOOLKIT 9565#ifdef USE_X_TOOLKIT
@@ -9574,7 +9577,7 @@ x_wm_set_window_state (struct frame *f, int state)
9574#endif /* not USE_X_TOOLKIT */ 9577#endif /* not USE_X_TOOLKIT */
9575} 9578}
9576 9579
9577void 9580static void
9578x_wm_set_icon_pixmap (struct frame *f, int pixmap_id) 9581x_wm_set_icon_pixmap (struct frame *f, int pixmap_id)
9579{ 9582{
9580 Pixmap icon_pixmap, icon_mask; 9583 Pixmap icon_pixmap, icon_mask;
@@ -10338,7 +10341,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
10338/* Get rid of display DPYINFO, deleting all frames on it, 10341/* Get rid of display DPYINFO, deleting all frames on it,
10339 and without sending any more commands to the X server. */ 10342 and without sending any more commands to the X server. */
10340 10343
10341void 10344static void
10342x_delete_display (struct x_display_info *dpyinfo) 10345x_delete_display (struct x_display_info *dpyinfo)
10343{ 10346{
10344 struct terminal *t; 10347 struct terminal *t;