|
|
01552a |
From ccff8a426babb9a34e64b0024ce4d651c1ca25e5 Mon Sep 17 00:00:00 2001
|
|
|
01552a |
From: Ray Strode <rstrode@redhat.com>
|
|
|
01552a |
Date: Fri, 17 Jan 2014 12:51:24 -0500
|
|
|
01552a |
Subject: [PATCH] seat: always add text displays when opening seat
|
|
|
01552a |
|
|
|
01552a |
At the moment we add pixel displays if we can, or
|
|
|
01552a |
text displays if we can't add pixel displays.
|
|
|
01552a |
|
|
|
01552a |
We need to always add text displays, otherwise, the
|
|
|
01552a |
text splash won't work when explicitly configured by
|
|
|
01552a |
the user.
|
|
|
01552a |
---
|
|
|
01552a |
src/libply-splash-core/ply-seat.c | 2 +-
|
|
|
01552a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
01552a |
|
|
|
01552a |
diff --git a/src/libply-splash-core/ply-seat.c b/src/libply-splash-core/ply-seat.c
|
|
|
01552a |
index 0900346..d9c7a2b 100644
|
|
|
01552a |
--- a/src/libply-splash-core/ply-seat.c
|
|
|
01552a |
+++ b/src/libply-splash-core/ply-seat.c
|
|
|
01552a |
@@ -110,62 +110,62 @@ bool
|
|
|
01552a |
ply_seat_open (ply_seat_t *seat,
|
|
|
01552a |
ply_renderer_type_t renderer_type,
|
|
|
01552a |
const char *device)
|
|
|
01552a |
{
|
|
|
01552a |
if (renderer_type != PLY_RENDERER_TYPE_NONE)
|
|
|
01552a |
{
|
|
|
01552a |
ply_renderer_t *renderer;
|
|
|
01552a |
|
|
|
01552a |
renderer = ply_renderer_new (renderer_type, device, seat->terminal);
|
|
|
01552a |
|
|
|
01552a |
if (!ply_renderer_open (renderer) && renderer_type != PLY_RENDERER_TYPE_AUTO)
|
|
|
01552a |
{
|
|
|
01552a |
ply_trace ("could not open renderer for %s", device);
|
|
|
01552a |
ply_renderer_free (renderer);
|
|
|
01552a |
return false;
|
|
|
01552a |
}
|
|
|
01552a |
|
|
|
01552a |
seat->renderer = renderer;
|
|
|
01552a |
seat->renderer_active = true;
|
|
|
01552a |
}
|
|
|
01552a |
|
|
|
01552a |
if (seat->renderer != NULL)
|
|
|
01552a |
{
|
|
|
01552a |
seat->keyboard = ply_keyboard_new_for_renderer (seat->renderer);
|
|
|
01552a |
add_pixel_displays (seat);
|
|
|
01552a |
|
|
|
01552a |
}
|
|
|
01552a |
else
|
|
|
01552a |
{
|
|
|
01552a |
seat->keyboard = ply_keyboard_new_for_terminal (seat->terminal);
|
|
|
01552a |
- add_text_displays (seat);
|
|
|
01552a |
}
|
|
|
01552a |
+ add_text_displays (seat);
|
|
|
01552a |
|
|
|
01552a |
ply_keyboard_watch_for_input (seat->keyboard);
|
|
|
01552a |
seat->keyboard_active = true;
|
|
|
01552a |
|
|
|
01552a |
return true;
|
|
|
01552a |
}
|
|
|
01552a |
|
|
|
01552a |
bool
|
|
|
01552a |
ply_seat_is_open (ply_seat_t *seat)
|
|
|
01552a |
{
|
|
|
01552a |
return ply_list_get_length (seat->pixel_displays) > 0 ||
|
|
|
01552a |
ply_list_get_length (seat->text_displays) > 0;
|
|
|
01552a |
}
|
|
|
01552a |
|
|
|
01552a |
void
|
|
|
01552a |
ply_seat_deactivate_keyboard (ply_seat_t *seat)
|
|
|
01552a |
{
|
|
|
01552a |
if (!seat->keyboard_active)
|
|
|
01552a |
return;
|
|
|
01552a |
|
|
|
01552a |
seat->keyboard_active = false;
|
|
|
01552a |
|
|
|
01552a |
if (seat->keyboard == NULL)
|
|
|
01552a |
return;
|
|
|
01552a |
|
|
|
01552a |
ply_trace ("deactivating keybord");
|
|
|
01552a |
ply_keyboard_stop_watching_for_input (seat->keyboard);
|
|
|
01552a |
}
|
|
|
01552a |
|
|
|
01552a |
void
|
|
|
01552a |
--
|
|
|
01552a |
1.8.3.1
|
|
|
01552a |
|