[PATCH 14/21] [x11] ignore terminal completely

Scott James Remnant scott at ubuntu.com
Wed Mar 17 21:49:28 PDT 2010


The X11 renderer doesn't need a terminal at all, so we ignore it
completely.
---
 src/plugins/renderers/x11/plugin.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/plugins/renderers/x11/plugin.c b/src/plugins/renderers/x11/plugin.c
index 042bdc9..a280bc7 100644
--- a/src/plugins/renderers/x11/plugin.c
+++ b/src/plugins/renderers/x11/plugin.c
@@ -56,7 +56,6 @@
 #include "ply-logger.h"
 #include "ply-rectangle.h"
 #include "ply-region.h"
-#include "ply-terminal.h"
 
 #include "ply-renderer.h"
 #include "ply-renderer-plugin.h"
@@ -83,7 +82,6 @@ struct _ply_renderer_backend
   ply_event_loop_t            *loop;
   ply_renderer_input_source_t  input_source;
   ply_list_t                  *heads;
-  ply_terminal_t              *terminal;
 
   ply_fd_watch_t *display_watch;
 
@@ -112,7 +110,6 @@ create_backend (const char     *device_name,
   backend->loop = ply_event_loop_get_default ();
   backend->heads = ply_list_new ();
   backend->input_source.key_buffer = ply_buffer_new ();
-  backend->terminal = terminal;
 
   return backend;
 }
@@ -231,11 +228,6 @@ map_to_device (ply_renderer_backend_t *backend)
   ply_list_node_t *node;
   assert (backend != NULL);
 
-  /* Prevent other parts of plymouth from trying to use
-   * the terminal, since X draws to it.
-   */
-  ply_terminal_ignore_mode_changes (backend->terminal, true);
-
   node = ply_list_get_first_node (backend->heads);
   while (node != NULL)
     {
@@ -304,8 +296,6 @@ unmap_from_device (ply_renderer_backend_t *backend)
 
       node = next_node;
     }
-
-  ply_terminal_ignore_mode_changes (backend->terminal, false);
 }
 
 static void
-- 
1.7.0



More information about the plymouth mailing list