From 5d55b8bc2e88e016a8641e03c8f675c799c1696f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 28 Dec 2019 12:15:48 -0800 Subject: [PATCH] Ensure that the scrollbar defines more vertex fields This is a bit of a speculative change to see if it helps with refs: https://github.com/wez/wezterm/issues/82 I have sometimes seen my scrollbar have a color that I didn't choose and ISTR having some issues in the past when updating the quads if I didn't set all of the fields of the vertex to a better defined value. --- src/frontend/gui/termwindow.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/frontend/gui/termwindow.rs b/src/frontend/gui/termwindow.rs index fb8a95f0312..764517f3e5c 100644 --- a/src/frontend/gui/termwindow.rs +++ b/src/frontend/gui/termwindow.rs @@ -1423,9 +1423,17 @@ impl TermWindow { let left = right - padding; let color = rgbcolor_to_window_color(palette.scrollbar_thumb); + let white_space = gl_state.util_sprites.white_space.texture_coords(); + quad.set_bg_color(color); quad.set_fg_color(color); quad.set_position(left, top, right, bottom); + quad.set_texture(white_space); + quad.set_texture_adjust(0., 0., 0., 0.); + quad.set_underline(white_space); + quad.set_has_color(false); + quad.set_cursor(white_space); + quad.set_cursor_color(rgbcolor_to_window_color(background_color)); } {