From 9b44a2496b132e76798f7dd12119ddf57cdca6b4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 19 Nov 2015 12:15:37 +0100 Subject: [PATCH] (xvideo.c) Cleanup --- gfx/drivers/xvideo.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/gfx/drivers/xvideo.c b/gfx/drivers/xvideo.c index bf5cbf2c7f..598d787998 100644 --- a/gfx/drivers/xvideo.c +++ b/gfx/drivers/xvideo.c @@ -787,16 +787,11 @@ static bool xv_suppress_screensaver(void *data, bool enable) { driver_t *driver = driver_get_ptr(); - (void)data; - (void)enable; + if (driver->display_type != RARCH_DISPLAY_X11) + return false; - if (driver && driver->display_type == RARCH_DISPLAY_X11) - { - x11_suspend_screensaver(driver->video_window); - return true; - } - - return false; + x11_suspend_screensaver(driver->video_window); + return true; } static bool xv_has_windowed(void *data)