diff --git a/gfx/context/sdl_ctx.c b/gfx/context/sdl_ctx.c index 90d519e645..3b44365bc9 100644 --- a/gfx/context/sdl_ctx.c +++ b/gfx/context/sdl_ctx.c @@ -155,7 +155,7 @@ bool gfx_ctx_set_video_mode( SDL_ShowCursor(SDL_DISABLE); // Suspend screensaver on X11. -#ifdef HAVE_X11 +#if defined(HAVE_X11) && !defined(__APPLE__) RARCH_LOG("Suspending screensaver (X11).\n"); SDL_SysWMinfo info; diff --git a/gfx/gfx_common.c b/gfx/gfx_common.c index 91c934380f..3f72f0aec6 100644 --- a/gfx/gfx_common.c +++ b/gfx/gfx_common.c @@ -120,7 +120,7 @@ bool gfx_window_title(char *buf, size_t size) return ret; } -#ifdef HAVE_X11 +#if defined(HAVE_X11) && !defined(__APPLE__) void gfx_suspend_screensaver(Window wnd) { char cmd[64];