[PATCH 5/5] [ply-text-display] don't set mode on every write

Scott James Remnant scott at ubuntu.com
Thu Mar 18 14:40:08 PDT 2010


Resetting the mode to text on every write means that if you're
using a text plugin and X starts, X's VT keeps getting reset back to
KD_TEXT since those plugins don't stop writing on deactivate (they
have no renderer).

There's no reason to set this mode here anyway; all paths to using
those plugins already do this.
---
 src/libply-splash-core/ply-text-display.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/libply-splash-core/ply-text-display.c b/src/libply-splash-core/ply-text-display.c
index 69d652b..7cabd98 100644
--- a/src/libply-splash-core/ply-text-display.c
+++ b/src/libply-splash-core/ply-text-display.c
@@ -249,8 +249,6 @@ ply_text_display_write (ply_text_display_t *display,
   vasprintf (&string, format, args);
   va_end (args);
 
-  if (ply_terminal_is_vt (display->terminal))
-    ply_terminal_set_mode (display->terminal, PLY_TERMINAL_MODE_TEXT);
   write (fd, string, strlen (string));
   free (string);
 }
-- 
1.7.0



More information about the plymouth mailing list