From cda27758bcc50c59d21b02c466bc156e6c168d9c Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sat, 10 Oct 2009 19:13:02 +0200 Subject: [PATCH] Add function prototypes in action.h and include it in superfluous.c --- src/actions.c | 4 ++++ src/actions.h | 7 +++---- src/superfluous.c | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/actions.c b/src/actions.c index d7bf5036..11834cb1 100644 --- a/src/actions.c +++ b/src/actions.c @@ -61,6 +61,10 @@ extern Atom _XA_WM_TAKE_FOCUS; extern void ProcessPendingEvents(); extern int calcIntersectionLength(int p1, int l1, int p2, int l2); +static void find_Maximus_geometry(WWindow *wwin, WArea usableArea, int *new_x, int *new_y, + unsigned int *new_width, unsigned int *new_height); +static void save_old_geometry(WWindow *wwin); + /******* Local Variables *******/ static struct { int steps; diff --git a/src/actions.h b/src/actions.h index cd0fc6bb..8ad0c160 100644 --- a/src/actions.h +++ b/src/actions.h @@ -69,9 +69,8 @@ void wMakeWindowVisible(WWindow *wwin); void wFullscreenWindow(WWindow *wwin); void wUnfullscreenWindow(WWindow *wwin); -static void save_old_geometry(WWindow *wwin); -static void find_Maximus_geometry(WWindow *wwin, WArea usableArea, int *new_x, - int *new_y, unsigned int *new_width, - unsigned int *new_height); + +void animateResize(WScreen *scr, int x, int y, int w, int h, int fx, int fy, int fw, int fh); + #endif diff --git a/src/superfluous.c b/src/superfluous.c index 1661c331..84082218 100644 --- a/src/superfluous.c +++ b/src/superfluous.c @@ -41,6 +41,7 @@ #include "window.h" #include "icon.h" #include "appicon.h" +#include "actions.h" extern WPreferences wPreferences; @@ -352,7 +353,6 @@ Pixmap MakeGhostIcon(WScreen * scr, Drawable drawable) } #ifdef WINDOW_BIRTH_ZOOM -extern void animateResize(); void DoWindowBirth(WWindow *wwin) {