Mercurial > emacs
comparison src/xterm.c @ 25360:2f3ad0a21be5
Call change_frame_size and do_pending_window_change with
new parameter.
(x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
under scroll bar widget.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 21 Aug 1999 19:31:13 +0000 |
parents | df0478893e10 |
children | 2869085f6edc |
comparison
equal
deleted
inserted
replaced
25359:14135aa647e2 | 25360:2f3ad0a21be5 |
---|---|
7702 if (!NILP (bar->next)) | 7702 if (!NILP (bar->next)) |
7703 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); | 7703 XSETVECTOR (XSCROLL_BAR (bar->next)->prev, bar); |
7704 | 7704 |
7705 /* Map the window/widget. */ | 7705 /* Map the window/widget. */ |
7706 #if USE_TOOLKIT_SCROLL_BARS | 7706 #if USE_TOOLKIT_SCROLL_BARS |
7707 XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | |
7708 left, top, | |
7709 FRAME_SCROLL_BAR_COLS (f) * CANON_X_UNIT (f), | |
7710 window_box_height (w), False); | |
7707 XtMapWidget (SCROLL_BAR_X_WIDGET (bar)); | 7711 XtMapWidget (SCROLL_BAR_X_WIDGET (bar)); |
7708 XtConfigureWidget (SCROLL_BAR_X_WIDGET (bar), | 7712 XtConfigureWidget (SCROLL_BAR_X_WIDGET (bar), |
7709 left + VERTICAL_SCROLL_BAR_WIDTH_TRIM, | 7713 left + VERTICAL_SCROLL_BAR_WIDTH_TRIM, |
7710 top, | 7714 top, |
7711 width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2, | 7715 width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2, |
9419 if (columns != f->width | 9423 if (columns != f->width |
9420 || rows != f->height | 9424 || rows != f->height |
9421 || event.xconfigure.width != f->output_data.x->pixel_width | 9425 || event.xconfigure.width != f->output_data.x->pixel_width |
9422 || event.xconfigure.height != f->output_data.x->pixel_height) | 9426 || event.xconfigure.height != f->output_data.x->pixel_height) |
9423 { | 9427 { |
9424 change_frame_size (f, rows, columns, 0, 1); | 9428 change_frame_size (f, rows, columns, 0, 1, 0); |
9425 SET_FRAME_GARBAGED (f); | 9429 SET_FRAME_GARBAGED (f); |
9426 cancel_mouse_face (f); | 9430 cancel_mouse_face (f); |
9427 } | 9431 } |
9428 #endif | 9432 #endif |
9429 | 9433 |
10834 wouldn't be reported in the frame parameters until some random | 10838 wouldn't be reported in the frame parameters until some random |
10835 point in the future when the ConfigureNotify event arrives. | 10839 point in the future when the ConfigureNotify event arrives. |
10836 | 10840 |
10837 We pass 1 for DELAY since we can't run Lisp code inside of | 10841 We pass 1 for DELAY since we can't run Lisp code inside of |
10838 a BLOCK_INPUT. */ | 10842 a BLOCK_INPUT. */ |
10839 change_frame_size (f, rows, cols, 0, 1); | 10843 change_frame_size (f, rows, cols, 0, 1, 0); |
10840 PIXEL_WIDTH (f) = pixelwidth; | 10844 PIXEL_WIDTH (f) = pixelwidth; |
10841 PIXEL_HEIGHT (f) = pixelheight; | 10845 PIXEL_HEIGHT (f) = pixelheight; |
10842 | 10846 |
10843 /* We've set {FRAME,PIXEL}_{WIDTH,HEIGHT} to the values we hope to | 10847 /* We've set {FRAME,PIXEL}_{WIDTH,HEIGHT} to the values we hope to |
10844 receive in the ConfigureNotify event; if we get what we asked | 10848 receive in the ConfigureNotify event; if we get what we asked |