From 4d8defb4c98b815d5e95435d56d4963a6859ed7f Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Sun, 18 Nov 2018 21:50:39 +0400 Subject: [PATCH] Remove D-bus based screensaver inhibition (will replaced to idle-inhibit in future) --- gfx/drivers_context/wayland_ctx.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 84bfcf47db..5045f77cd0 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -42,10 +42,6 @@ #include "../common/gl_common.h" #endif -#ifdef HAVE_DBUS -#include "../common/dbus_common.h" -#endif - #include "../common/wayland_common.h" #include "../../frontend/frontend_driver.h" #include "../../input/input_driver.h" @@ -799,11 +795,6 @@ static void gfx_ctx_wl_destroy_resources(gfx_ctx_wayland_data_t *wl) wl->width = 0; wl->height = 0; - -#ifdef HAVE_DBUS - dbus_screensaver_uninhibit(); - dbus_close_connection(); -#endif } void flush_wayland_fd(void *data) @@ -1138,10 +1129,6 @@ static void *gfx_ctx_wl_init(video_frame_info_t *video_info, void *video_driver) flush_wayland_fd(&wl->input); -#ifdef HAVE_DBUS - dbus_ensure_connection(); -#endif - return wl; error: @@ -1404,18 +1391,6 @@ static bool gfx_ctx_wl_has_focus(void *data) return wl->input.keyboard_focus; } -static bool gfx_ctx_wl_suppress_screensaver(void *data, bool enable) -{ - (void)data; - (void)enable; - -#ifdef HAVE_DBUS - return dbus_suspend_screensaver(enable); -#endif - - return true; -} - static enum gfx_ctx_api gfx_ctx_wl_get_api(void *data) { return wl_api; @@ -1609,7 +1584,6 @@ const gfx_ctx_driver_t gfx_ctx_wayland = { NULL, gfx_ctx_wl_check_window, gfx_ctx_wl_has_focus, - gfx_ctx_wl_suppress_screensaver, gfx_ctx_wl_swap_buffers, gfx_ctx_wl_input_driver, gfx_ctx_wl_get_proc_address,