mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 15:58:20 +02:00
Add new ply_window_is_open method
Will be useful for determing which windows are available for the bootsplash to use.
This commit is contained in:
parent
fbaa2f9805
commit
5e4249f179
2 changed files with 12 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ struct _ply_window
|
|||
uint32_t should_force_text_mode : 1;
|
||||
uint32_t original_term_attributes_saved : 1;
|
||||
uint32_t supports_text_color : 1;
|
||||
uint32_t is_open : 1;
|
||||
|
||||
ply_window_keyboard_input_handler_t keyboard_input_handler;
|
||||
void *keyboard_input_handler_user_data;
|
||||
|
|
@ -502,12 +503,22 @@ ply_window_open (ply_window_t *window)
|
|||
*/
|
||||
ply_frame_buffer_open (window->frame_buffer);
|
||||
|
||||
window->is_open = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ply_window_is_open (ply_window_t *window)
|
||||
{
|
||||
return window->is_open;
|
||||
}
|
||||
|
||||
void
|
||||
ply_window_close (ply_window_t *window)
|
||||
{
|
||||
window->is_open = false;
|
||||
|
||||
ply_window_restore_color_palette (window);
|
||||
|
||||
if (ply_frame_buffer_device_is_open (window->frame_buffer))
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ void ply_window_set_erase_handler (ply_window_t *window,
|
|||
void *user_data);
|
||||
|
||||
bool ply_window_open (ply_window_t *window);
|
||||
bool ply_window_is_open (ply_window_t *window);
|
||||
void ply_window_close (ply_window_t *window);
|
||||
bool ply_window_set_mode (ply_window_t *window,
|
||||
ply_window_mode_t mode);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue