mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
Increase the readability of wUnshadeWindow() and wShadeWindow() a little bit
Instead of open coding the animation routines in the function bodies, put them in a helper function called shade_animate(wwin, what), whose second argument can be SHADE or UNSHADE.
This commit is contained in:
@@ -38,6 +38,7 @@ 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user