9197 |
/* Does the scroll bar exist yet? */ |
/* Does the scroll bar exist yet? */ |
9198 |
if (NILP (w->vertical_scroll_bar)) |
if (NILP (w->vertical_scroll_bar)) |
9199 |
{ |
{ |
|
BLOCK_INPUT; |
|
9200 |
if (width && height) |
if (width && height) |
9201 |
x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
{ |
9202 |
left, top, width, height, False); |
BLOCK_INPUT; |
9203 |
UNBLOCK_INPUT; |
x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
9204 |
|
left, top, width, height, False); |
9205 |
|
UNBLOCK_INPUT; |
9206 |
|
} |
9207 |
|
|
9208 |
bar = x_scroll_bar_create (w, top, sb_left, sb_width, height); |
bar = x_scroll_bar_create (w, top, sb_left, sb_width, height); |
9209 |
} |
} |
9210 |
else |
else |
9265 |
int rest = area_width - sb_width; |
int rest = area_width - sb_width; |
9266 |
if (rest > 0) |
if (rest > 0) |
9267 |
x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
9268 |
left + area_width - rest, 0, |
left + area_width - rest, top, |
9269 |
rest, max (height, 1), False); |
rest, max (height, 1), False); |
9270 |
} |
} |
9271 |
|
|