From: Scott James Remnant Date: Thu, 18 Mar 2010 21:40:08 +0000 (+0000) Subject: [ply-text-display] don't set mode on every write X-Git-Tag: 0.8.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d488d5e4847be120d5bdff62e6e4b0b6787040f;p=thirdparty%2Fplymouth.git [ply-text-display] don't set mode on every write 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. --- diff --git a/src/libply-splash-core/ply-text-display.c b/src/libply-splash-core/ply-text-display.c index 69d652b2..7cabd98f 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); }