[x11] ignore terminal completely

The X11 renderer doesn't need a terminal at all, so we ignore it
completely.
This commit is contained in:
Scott James Remnant 2010-03-18 04:49:28 +00:00
parent 59eaa4db59
commit 82494f6efd

View file

@ -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