diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/xterm.c b/src/xterm.c index f845deabd82..7b42e858304 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -5164,7 +5164,7 @@ XTset_vertical_scroll_bar (struct window *w, int portion, int whole, int positio | |||
| 5164 | int top, height, left, sb_left, width, sb_width; | 5164 | int top, height, left, sb_left, width, sb_width; |
| 5165 | int window_y, window_height; | 5165 | int window_y, window_height; |
| 5166 | #ifdef USE_TOOLKIT_SCROLL_BARS | 5166 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 5167 | int fringe_extended_p; | 5167 | bool fringe_extended_p; |
| 5168 | #endif | 5168 | #endif |
| 5169 | 5169 | ||
| 5170 | /* Get window dimensions. */ | 5170 | /* Get window dimensions. */ |
| @@ -5197,16 +5197,7 @@ XTset_vertical_scroll_bar (struct window *w, int portion, int whole, int positio | |||
| 5197 | #endif | 5197 | #endif |
| 5198 | 5198 | ||
| 5199 | #ifdef USE_TOOLKIT_SCROLL_BARS | 5199 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 5200 | if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT (w)) | 5200 | fringe_extended_p = WINDOW_FRINGE_EXTENDED_P (w); |
| 5201 | fringe_extended_p = (WINDOW_LEFTMOST_P (w) | ||
| 5202 | && WINDOW_LEFT_FRINGE_WIDTH (w) | ||
| 5203 | && (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) | ||
| 5204 | || WINDOW_LEFT_MARGIN_COLS (w) == 0)); | ||
| 5205 | else | ||
| 5206 | fringe_extended_p = (WINDOW_RIGHTMOST_P (w) | ||
| 5207 | && WINDOW_RIGHT_FRINGE_WIDTH (w) | ||
| 5208 | && (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) | ||
| 5209 | || WINDOW_RIGHT_MARGIN_COLS (w) == 0)); | ||
| 5210 | #endif | 5201 | #endif |
| 5211 | 5202 | ||
| 5212 | /* Does the scroll bar exist yet? */ | 5203 | /* Does the scroll bar exist yet? */ |