mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
(x11_common.c) Cleanup
This commit is contained in:
parent
e030986837
commit
bc226305d7
@ -219,23 +219,15 @@ static void xdg_screensaver_inhibit(Window wnd)
|
||||
}
|
||||
}
|
||||
|
||||
void x11_suspend_screensaver_xdg_screensaver(Window wnd, bool enable)
|
||||
{
|
||||
/* Check if screensaver suspend is enabled in config */
|
||||
if (!enable)
|
||||
return;
|
||||
|
||||
if (xdg_screensaver_available)
|
||||
xdg_screensaver_inhibit(wnd);
|
||||
}
|
||||
|
||||
void x11_suspend_screensaver(Window wnd, bool enable)
|
||||
{
|
||||
#ifdef HAVE_DBUS
|
||||
if (dbus_suspend_screensaver(enable))
|
||||
return;
|
||||
#endif
|
||||
x11_suspend_screensaver_xdg_screensaver(wnd, enable);
|
||||
if (enable)
|
||||
if (xdg_screensaver_available)
|
||||
xdg_screensaver_inhibit(wnd);
|
||||
}
|
||||
|
||||
float x11_get_refresh_rate(void *data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user