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

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