mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08: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:
committed by
Carlos R. Mafra
parent
e42586c712
commit
3106292f4b
@@ -62,10 +62,6 @@ extern Atom _XA_WM_TAKE_FOCUS;
|
|||||||
extern void ProcessPendingEvents();
|
extern void ProcessPendingEvents();
|
||||||
extern int calcIntersectionLength(int p1, int l1, int p2, int l2);
|
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 *******/
|
/******* Local Variables *******/
|
||||||
static struct {
|
static struct {
|
||||||
int steps;
|
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.
|
* 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,
|
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;
|
WWindow *tmp;
|
||||||
int x_0 = wwin->frame_x;
|
int x_0 = wwin->frame_x;
|
||||||
|
|||||||
@@ -69,7 +69,9 @@ void wMakeWindowVisible(WWindow *wwin);
|
|||||||
|
|
||||||
void wFullscreenWindow(WWindow *wwin);
|
void wFullscreenWindow(WWindow *wwin);
|
||||||
void wUnfullscreenWindow(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
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user