diff options
author | Christian Duerr <contact@christianduerr.com> | 2017-12-10 00:33:58 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-12-24 09:46:54 -0800 |
commit | fe29b8c6873c82517a218067abbf56b64cae413b (patch) | |
tree | a2cff4b838448d9e45ed56374db363dbcf724259 /src/display.rs | |
parent | 8195d7103498043270523bd81d703cb678cd11a2 (diff) | |
download | alacritty-fe29b8c6873c82517a218067abbf56b64cae413b.tar.gz alacritty-fe29b8c6873c82517a218067abbf56b64cae413b.zip |
Add custom box cursor for unfocused window
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/display.rs b/src/display.rs index bfd62c32..8e3d8814 100644 --- a/src/display.rs +++ b/src/display.rs @@ -354,6 +354,7 @@ impl Display { // // TODO I wonder if the renderable cells iter could avoid the // mutable borrow + let window_focused = self.window.is_focused; self.renderer.with_api(config, &size_info, visual_bell_intensity, |mut api| { // Clear screen to update whole background with new color if background_color_changed { @@ -361,7 +362,10 @@ impl Display { } // Draw the grid - api.render_cells(terminal.renderable_cells(config, selection), glyph_cache); + api.render_cells( + terminal.renderable_cells(config, selection, window_focused), + glyph_cache, + ); }); } |