[vte] widget: Queue a redraw if the background operator changes



commit be6cd8246c7993326677c9e2058deedac4263667
Author: Christian Persch <chpe src gnome org>
Date:   Tue Oct 24 22:45:49 2017 +0200

    widget: Queue a redraw if the background operator changes

 src/vte.cc    |    4 ++++
 src/vtegtk.cc |    3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 6625f11..b526b0f 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -11434,5 +11434,9 @@ VteTerminalPrivate::set_word_char_exceptions(char const* exceptions)
 void
 VteTerminalPrivate::set_background_operator(cairo_operator_t op)
 {
+        if (m_background_operator == op)
+                return;
+
         m_background_operator = op;
+        invalidate_all();
 }
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 3f6ba35..f481515 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -4017,9 +4017,6 @@ vte_terminal_write_contents_sync (VteTerminal *terminal,
  * image to the terminal, in which case %CAIRO_OPERATOR_OVER is most likely
  * the correct operator to use.
  *
- * If the operator is changed while the widget is already shown,
- * you need to queue a redraw to get it applied.
- *
  * Since: 0.52
  */
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]