[Xfce4-commits] [apps/xfce4-terminal] 01/01: Refine previous commit; also do the same for selection color

noreply at xfce.org noreply at xfce.org
Fri Jul 15 16:29:30 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 1dca1b7f7469a838ddf02fe8c4f10b66a0f9e37b
Author: Igor <f2404 at yandex.ru>
Date:   Fri Jul 15 17:29:23 2016 +0300

    Refine previous commit; also do the same for selection color
---
 terminal/terminal-screen.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index 00e5382..205a0b7 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -941,12 +941,15 @@ terminal_screen_update_colors (TerminalScreen *screen)
   /* cursor color */
   has_cursor = terminal_preferences_get_color (screen->preferences, "color-cursor", &cursor);
   vte_terminal_set_color_cursor (VTE_TERMINAL (screen->terminal), has_cursor ? &cursor : NULL);
-  vte_terminal_set_color_cursor_foreground (VTE_TERMINAL (screen->terminal), has_bg ? &bg : NULL);
+  vte_terminal_set_color_cursor_foreground (VTE_TERMINAL (screen->terminal),
+                                            has_cursor && has_bg ? &bg : NULL);
 
   /* selection color */
   if (!selection_use_default)
     selection_use_default = !terminal_preferences_get_color (screen->preferences, "color-selection", &selection);
   vte_terminal_set_color_highlight (VTE_TERMINAL (screen->terminal), selection_use_default ? NULL : &selection);
+  vte_terminal_set_color_highlight_foreground (VTE_TERMINAL (screen->terminal),
+                                               selection_use_default && has_bg ? NULL : &bg);
 
   /* bold color */
   if (!bold_use_default)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list