From: Ray Strode Date: Wed, 29 Jul 2015 18:55:41 +0000 (-0400) Subject: keyboard: track activeness X-Git-Tag: 0.9.3~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6a582d05d144688b6ab243ca1839a00a1ca3817;p=thirdparty%2Fplymouth.git keyboard: track activeness Right now, ply-seat has to handle tracking keyboard activeness on its own. This commit moves activeness tracking to ply-keyboard directly. --- diff --git a/src/libply-splash-core/ply-seat.c b/src/libply-splash-core/ply-seat.c index 2105ca56..a963879c 100644 --- a/src/libply-splash-core/ply-seat.c +++ b/src/libply-splash-core/ply-seat.c @@ -48,8 +48,6 @@ struct _ply_seat ply_keyboard_t *keyboard; ply_list_t *text_displays; ply_list_t *pixel_displays; - - uint32_t keyboard_active : 1; }; ply_seat_t * @@ -153,7 +151,6 @@ ply_seat_open (ply_seat_t *seat, if (seat->keyboard != NULL) { ply_keyboard_watch_for_input (seat->keyboard); - seat->keyboard_active = true; } else { ply_trace ("not watching seat for input"); } @@ -171,11 +168,6 @@ ply_seat_is_open (ply_seat_t *seat) void ply_seat_deactivate_keyboard (ply_seat_t *seat) { - if (!seat->keyboard_active) - return; - - seat->keyboard_active = false; - if (seat->keyboard == NULL) return; @@ -196,24 +188,16 @@ ply_seat_deactivate_renderer (ply_seat_t *seat) void ply_seat_activate_keyboard (ply_seat_t *seat) { - if (seat->keyboard_active) - return; - if (seat->keyboard == NULL) return; ply_trace ("activating keyboard"); ply_keyboard_watch_for_input (seat->keyboard); - - seat->keyboard_active = true; } void ply_seat_activate_renderer (ply_seat_t *seat) { - if (seat->renderer_active) - return; - if (seat->renderer == NULL) return;