From 3106292f4beae827fc43f9e743ae256a9805aaa8 Mon Sep 17 00:00:00 2001 From: Nicolas Bonifas Date: Sun, 13 Sep 2009 22:28:40 +0200 Subject: [PATCH] Maximus: Use unsigned int for width/height variables And move its prototype to actions.h (and also that of save_old_geometry()). --- src/actions.c | 6 +----- src/actions.h | 6 ++++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/actions.c b/src/actions.c index 4ddfcd2c..91686935 100644 --- a/src/actions.c +++ b/src/actions.c @@ -62,10 +62,6 @@ extern Atom _XA_WM_TAKE_FOCUS; extern void ProcessPendingEvents(); extern int calcIntersectionLength(int p1, int l1, int p2, int l2); -static void save_old_geometry(WWindow *wwin); -static void find_Maximus_geometry(WWindow *wwin, WArea usableArea, int *new_x, - int *new_y, int *new_width, int *new_height); - /******* Local Variables *******/ static struct { int steps; @@ -407,7 +403,7 @@ void wMaximizeWindow(WWindow * wwin, int directions) * while the windows which will stop the maximization of w_0 are denoted by w_j. */ static void find_Maximus_geometry(WWindow *wwin, WArea usableArea, int *new_x, int *new_y, - int *new_width, int *new_height) + unsigned int *new_width, unsigned int *new_height) { WWindow *tmp; int x_0 = wwin->frame_x; diff --git a/src/actions.h b/src/actions.h index 7069ff51..cd0fc6bb 100644 --- a/src/actions.h +++ b/src/actions.h @@ -69,7 +69,9 @@ 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); #endif -- 2.11.4.GIT