Blame SOURCES/always-add-text-splash.patch

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