From e96f9f3869c6ea5803f5759bf1737547a46be22f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 19 Jul 2021 11:32:34 +0200 Subject: Change function declaration style This is a very sweeping change, but I feel that it is necessary. --- src/resize.c | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'src/resize.c') diff --git a/src/resize.c b/src/resize.c index c7961f9..9b512c3 100644 --- a/src/resize.c +++ b/src/resize.c @@ -30,12 +30,16 @@ static void FixWidth(ClientNode *np); static void FixHeight(ClientNode *np); /** Set the resize mode to use. */ -void SetResizeMode(ResizeModeType mode) { +void +SetResizeMode(ResizeModeType mode) +{ resizeMode = mode; } /** Callback to stop a resize. */ -void ResizeController(int wasDestroyed) { +void +ResizeController(int wasDestroyed) +{ if(resizeMode == RESIZE_OUTLINE) { ClearOutline(); } @@ -46,8 +50,10 @@ void ResizeController(int wasDestroyed) { } /** Resize a client window (mouse initiated). */ -void ResizeClient(ClientNode *np, BorderActionType action, - int startx, int starty) { +void +ResizeClient(ClientNode *np, BorderActionType action, + int startx, int starty) +{ XEvent event; int oldx, oldy; @@ -245,7 +251,9 @@ void ResizeClient(ClientNode *np, BorderActionType action, } /** Resize a client window (keyboard or menu initiated). */ -void ResizeClientKeyboard(ClientNode *np) { +void +ResizeClientKeyboard(ClientNode *np) +{ XEvent event; int gwidth, gheight; @@ -406,7 +414,9 @@ void ResizeClientKeyboard(ClientNode *np) { } /** Stop a resize action. */ -void StopResize(ClientNode *np) { +void +StopResize(ClientNode *np) +{ int north, south, east, west; @@ -440,7 +450,9 @@ void StopResize(ClientNode *np) { } /** Fix the width to match the aspect ratio. */ -void FixWidth(ClientNode *np) { +void +FixWidth(ClientNode *np) +{ float ratio, minr, maxr; @@ -465,7 +477,9 @@ void FixWidth(ClientNode *np) { } /** Fix the height to match the aspect ratio. */ -void FixHeight(ClientNode *np) { +void +FixHeight(ClientNode *np) +{ float ratio, minr, maxr; -- cgit v1.2.3