aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/window.c b/src/window.c
index e5cb271642d..6bef8fe928b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -581,14 +581,14 @@ If they are on the border between WINDOW and its right sibling,\n\
581 set *PART to 1; if it is on the separating line between the window 581 set *PART to 1; if it is on the separating line between the window
582 and its right sibling, set it to 2; otherwise set it to 0. If 582 and its right sibling, set it to 2; otherwise set it to 0. If
583 there is no window under X, Y return nil and leave *PART 583 there is no window under X, Y return nil and leave *PART
584 unmodified. TOOLBAR_P non-zero means detect toolbar windows. */ 584 unmodified. TOOL_BAR_P non-zero means detect tool-bar windows. */
585 585
586Lisp_Object 586Lisp_Object
587window_from_coordinates (frame, x, y, part, toolbar_p) 587window_from_coordinates (frame, x, y, part, tool_bar_p)
588 FRAME_PTR frame; 588 FRAME_PTR frame;
589 int x, y; 589 int x, y;
590 int *part; 590 int *part;
591 int toolbar_p; 591 int tool_bar_p;
592{ 592{
593 register Lisp_Object tem, first; 593 register Lisp_Object tem, first;
594 int found; 594 int found;
@@ -609,14 +609,14 @@ window_from_coordinates (frame, x, y, part, toolbar_p)
609 } 609 }
610 while (!EQ (tem, first)); 610 while (!EQ (tem, first));
611 611
612 /* See if it's in the toolbar window, if a toolbar exists. */ 612 /* See if it's in the tool bar window, if a tool bar exists. */
613 if (toolbar_p 613 if (tool_bar_p
614 && WINDOWP (frame->toolbar_window) 614 && WINDOWP (frame->tool_bar_window)
615 && XFASTINT (XWINDOW (frame->toolbar_window)->height) 615 && XFASTINT (XWINDOW (frame->tool_bar_window)->height)
616 && coordinates_in_window (XWINDOW (frame->toolbar_window), &x, &y)) 616 && coordinates_in_window (XWINDOW (frame->tool_bar_window), &x, &y))
617 { 617 {
618 *part = 0; 618 *part = 0;
619 return frame->toolbar_window; 619 return frame->tool_bar_window;
620 } 620 }
621 621
622 return Qnil; 622 return Qnil;
@@ -3976,7 +3976,7 @@ struct save_window_data
3976 EMACS_INT size_from_Lisp_Vector_struct; 3976 EMACS_INT size_from_Lisp_Vector_struct;
3977 struct Lisp_Vector *next_from_Lisp_Vector_struct; 3977 struct Lisp_Vector *next_from_Lisp_Vector_struct;
3978 Lisp_Object frame_width, frame_height, frame_menu_bar_lines; 3978 Lisp_Object frame_width, frame_height, frame_menu_bar_lines;
3979 Lisp_Object frame_toolbar_lines; 3979 Lisp_Object frame_tool_bar_lines;
3980 Lisp_Object selected_frame; 3980 Lisp_Object selected_frame;
3981 Lisp_Object current_window; 3981 Lisp_Object current_window;
3982 Lisp_Object current_buffer; 3982 Lisp_Object current_buffer;
@@ -4091,7 +4091,7 @@ the return value is nil. Otherwise the value is t.")
4091 int previous_frame_height = FRAME_HEIGHT (f); 4091 int previous_frame_height = FRAME_HEIGHT (f);
4092 int previous_frame_width = FRAME_WIDTH (f); 4092 int previous_frame_width = FRAME_WIDTH (f);
4093 int previous_frame_menu_bar_lines = FRAME_MENU_BAR_LINES (f); 4093 int previous_frame_menu_bar_lines = FRAME_MENU_BAR_LINES (f);
4094 int previous_frame_toolbar_lines = FRAME_TOOLBAR_LINES (f); 4094 int previous_frame_tool_bar_lines = FRAME_TOOL_BAR_LINES (f);
4095 4095
4096 /* The mouse highlighting code could get screwed up 4096 /* The mouse highlighting code could get screwed up
4097 if it runs during this. */ 4097 if it runs during this. */
@@ -4106,9 +4106,9 @@ the return value is nil. Otherwise the value is t.")
4106 != previous_frame_menu_bar_lines) 4106 != previous_frame_menu_bar_lines)
4107 x_set_menu_bar_lines (f, data->frame_menu_bar_lines, make_number (0)); 4107 x_set_menu_bar_lines (f, data->frame_menu_bar_lines, make_number (0));
4108#ifdef HAVE_WINDOW_SYSTEM 4108#ifdef HAVE_WINDOW_SYSTEM
4109 if (XFASTINT (data->frame_toolbar_lines) 4109 if (XFASTINT (data->frame_tool_bar_lines)
4110 != previous_frame_toolbar_lines) 4110 != previous_frame_tool_bar_lines)
4111 x_set_toolbar_lines (f, data->frame_toolbar_lines, make_number (0)); 4111 x_set_tool_bar_lines (f, data->frame_tool_bar_lines, make_number (0));
4112#endif 4112#endif
4113#endif 4113#endif
4114 4114
@@ -4273,9 +4273,9 @@ the return value is nil. Otherwise the value is t.")
4273 x_set_menu_bar_lines (f, make_number (previous_frame_menu_bar_lines), 4273 x_set_menu_bar_lines (f, make_number (previous_frame_menu_bar_lines),
4274 make_number (0)); 4274 make_number (0));
4275#ifdef HAVE_WINDOW_SYSTEM 4275#ifdef HAVE_WINDOW_SYSTEM
4276 if (previous_frame_toolbar_lines != FRAME_TOOLBAR_LINES (f)) 4276 if (previous_frame_tool_bar_lines != FRAME_TOOL_BAR_LINES (f))
4277 x_set_toolbar_lines (f, make_number (previous_frame_toolbar_lines), 4277 x_set_tool_bar_lines (f, make_number (previous_frame_tool_bar_lines),
4278 make_number (0)); 4278 make_number (0));
4279#endif 4279#endif
4280#endif 4280#endif
4281 4281
@@ -4529,7 +4529,7 @@ redirection (see `redirect-frame-focus').")
4529 XSETFASTINT (data->frame_width, FRAME_WIDTH (f)); 4529 XSETFASTINT (data->frame_width, FRAME_WIDTH (f));
4530 XSETFASTINT (data->frame_height, FRAME_HEIGHT (f)); 4530 XSETFASTINT (data->frame_height, FRAME_HEIGHT (f));
4531 XSETFASTINT (data->frame_menu_bar_lines, FRAME_MENU_BAR_LINES (f)); 4531 XSETFASTINT (data->frame_menu_bar_lines, FRAME_MENU_BAR_LINES (f));
4532 XSETFASTINT (data->frame_toolbar_lines, FRAME_TOOLBAR_LINES (f)); 4532 XSETFASTINT (data->frame_tool_bar_lines, FRAME_TOOL_BAR_LINES (f));
4533 XSETFRAME (data->selected_frame, selected_frame); 4533 XSETFRAME (data->selected_frame, selected_frame);
4534 data->current_window = FRAME_SELECTED_WINDOW (f); 4534 data->current_window = FRAME_SELECTED_WINDOW (f);
4535 XSETBUFFER (data->current_buffer, current_buffer); 4535 XSETBUFFER (data->current_buffer, current_buffer);