Register signal handler for oga video driver

This commit is contained in:
valadaa48 2020-03-28 04:54:33 +00:00
parent 5972ed9cc6
commit 2d2bd625c6

View File

@ -25,6 +25,8 @@
#include <xf86drmMode.h>
#include <drm/drm_fourcc.h>
#include "frontend/frontend_driver.h"
#include "../font_driver.h"
#ifdef HAVE_CONFIG_H
@ -108,6 +110,8 @@ static void *oga_gfx_init(const video_info_t *video,
settings_t *settings = config_get_ptr();
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
frontend_driver_install_signal_handler();
if (input && input_data) {
void* udev = input_udev.init(settings->arrays.input_joypad_driver);
if (udev) {
@ -290,7 +294,7 @@ static void oga_gfx_set_nonblock_state(void *a, bool b, bool c, unsigned d)
static bool oga_gfx_alive(void *data)
{
return true;
return !frontend_driver_get_signal_handler_state();
}
static bool oga_gfx_focus(void *data)