1
0
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:
Carlos R. Mafra
2009-08-29 20:02:04 +02:00
parent 34be9d7816
commit a1f35d7f5b
2 changed files with 83 additions and 75 deletions

View File

@@ -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);