1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00

Maximus: Use unsigned int for width/height variables

And move its prototype to actions.h (and also that of
save_old_geometry()).
This commit is contained in:
Nicolas Bonifas
2009-09-13 22:28:40 +02:00
committed by Carlos R. Mafra
parent e42586c712
commit 3106292f4b
2 changed files with 5 additions and 7 deletions

View File

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