diff options
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xfns.c b/src/xfns.c index da7f6067a96..df66cbe1ab4 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2260,7 +2260,7 @@ free_frame_xic (struct frame *f) void xic_set_preeditarea (struct window *w, int x, int y) { - struct frame *f = XFRAME (w->frame); + struct frame *f = XFRAME (WVAR (w, frame)); XVaNestedList attr; XPoint spot; @@ -5069,28 +5069,28 @@ Text larger than the specified size is clipped. */) /* Set up the frame's root window. */ w = XWINDOW (FRAME_ROOT_WINDOW (f)); - w->left_col = w->top_line = make_number (0); + WVAR (w, left_col) = WVAR (w, top_line) = make_number (0); if (CONSP (Vx_max_tooltip_size) && RANGED_INTEGERP (1, XCAR (Vx_max_tooltip_size), INT_MAX) && RANGED_INTEGERP (1, XCDR (Vx_max_tooltip_size), INT_MAX)) { - w->total_cols = XCAR (Vx_max_tooltip_size); - w->total_lines = XCDR (Vx_max_tooltip_size); + WVAR (w, total_cols) = XCAR (Vx_max_tooltip_size); + WVAR (w, total_lines) = XCDR (Vx_max_tooltip_size); } else { - w->total_cols = make_number (80); - w->total_lines = make_number (40); + WVAR (w, total_cols) = make_number (80); + WVAR (w, total_lines) = make_number (40); } - FRAME_TOTAL_COLS (f) = XINT (w->total_cols); + FRAME_TOTAL_COLS (f) = XINT (WVAR (w, total_cols)); adjust_glyphs (f); w->pseudo_window_p = 1; /* Display the tooltip text in a temporary buffer. */ old_buffer = current_buffer; - set_buffer_internal_1 (XBUFFER (XWINDOW (FRAME_ROOT_WINDOW (f))->buffer)); + set_buffer_internal_1 (XBUFFER (WVAR (XWINDOW (FRAME_ROOT_WINDOW (f)), buffer))); BVAR (current_buffer, truncate_lines) = Qnil; clear_glyph_matrix (w->desired_matrix); clear_glyph_matrix (w->current_matrix); @@ -5151,7 +5151,7 @@ Text larger than the specified size is clipped. */) /* w->total_cols and FRAME_TOTAL_COLS want the width in columns, not in pixels. */ width /= WINDOW_FRAME_COLUMN_WIDTH (w); - w->total_cols = make_number (width); + WVAR (w, total_cols) = make_number (width); FRAME_TOTAL_COLS (f) = width; adjust_glyphs (f); clear_glyph_matrix (w->desired_matrix); |