]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[ply-text-display] don't set mode on every write
authorScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 21:40:08 +0000 (21:40 +0000)
committerRay Strode <rstrode@redhat.com>
Mon, 22 Mar 2010 03:57:56 +0000 (23:57 -0400)
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

index 69d652b2ea19a4049425114f4e03f4597f79a62e..7cabd98f4a67bfff41bfcf3e487053317f81458e 100644 (file)
@@ -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);
 }