diff --git a/src/actions.c b/src/actions.c index 52b4fc97..c308ed04 100644 --- a/src/actions.c +++ b/src/actions.c @@ -91,6 +91,12 @@ static int compareTimes(Time t1, Time t2) return (diff < 60000) ? 1 : -1; } +#ifdef ANIMATIONS +static void shade_animate(WWindow *wwin, Bool what); +#else +static void shade_animate(WWindow *wwin, Bool what) { } +#endif + /* *---------------------------------------------------------------------- * wSetFocusTo-- @@ -1834,6 +1840,4 @@ static void shade_animate(WWindow *wwin, Bool what) break; } } -#else -static void shade_animate(WWindow *wwin, Bool what) { return; } -#endif /* ANIMATIONS */ +#endif diff --git a/src/actions.h b/src/actions.h index 8ad0c160..382cb213 100644 --- a/src/actions.h +++ b/src/actions.h @@ -39,7 +39,6 @@ int wKeyboardMoveResizeWindow(WWindow *wwin); void wMouseResizeWindow(WWindow *wwin, XEvent *ev); -static void shade_animate(WWindow *wwin, Bool what); void wShadeWindow(WWindow *wwin); void wUnshadeWindow(WWindow *wwin);