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/winmenu.c | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'src/winmenu.c') diff --git a/src/winmenu.c b/src/winmenu.c index 7b537cc..ff2ea26 100644 --- a/src/winmenu.c +++ b/src/winmenu.c @@ -30,7 +30,9 @@ static ClientNode *client = NULL; /**************************************************************************** ****************************************************************************/ -void GetWindowMenuSize(ClientNode *np, int *width, int *height) { +void +GetWindowMenuSize(ClientNode *np, int *width, int *height) +{ Menu *menu; @@ -45,7 +47,9 @@ void GetWindowMenuSize(ClientNode *np, int *width, int *height) { /**************************************************************************** ****************************************************************************/ -void ShowWindowMenu(ClientNode *np, int x, int y) { +void +ShowWindowMenu(ClientNode *np, int x, int y) +{ Menu *menu; @@ -130,7 +134,9 @@ Menu *CreateWindowMenu() { /**************************************************************************** ****************************************************************************/ -void CreateWindowLayerMenu(Menu *menu) { +void +CreateWindowLayerMenu(Menu *menu) +{ Menu *submenu; MenuItem *item; @@ -195,7 +201,9 @@ void CreateWindowLayerMenu(Menu *menu) { /**************************************************************************** ****************************************************************************/ -void CreateWindowSendToMenu(Menu *menu) { +void +CreateWindowSendToMenu(Menu *menu) +{ unsigned int mask; unsigned int x; @@ -217,8 +225,10 @@ void CreateWindowSendToMenu(Menu *menu) { /**************************************************************************** ****************************************************************************/ -void AddWindowMenuItem(Menu *menu, const char *name, - MenuActionType type, int value) { +void +AddWindowMenuItem(Menu *menu, const char *name, + MenuActionType type, int value) +{ MenuItem *item; @@ -241,7 +251,9 @@ void AddWindowMenuItem(Menu *menu, const char *name, /**************************************************************************** ****************************************************************************/ -void ChooseWindow(const MenuAction *action) { +void +ChooseWindow(const MenuAction *action) +{ XEvent event; ClientNode *np; @@ -273,7 +285,9 @@ void ChooseWindow(const MenuAction *action) { /**************************************************************************** ****************************************************************************/ -void RunWindowCommand(const MenuAction *action) { +void +RunWindowCommand(const MenuAction *action) +{ switch(action->type) { case MA_STICK: -- cgit v1.2.3