From a608e1c465c7cdee1fbeb73a5b50b142c1cc7680 Mon Sep 17 00:00:00 2001 From: speedie Date: Thu, 6 Oct 2022 09:58:29 +0200 Subject: [PATCH] indentation changes to scratchpad patch --- speedwm.c | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/speedwm.c b/speedwm.c index c032c1a..4ddde52 100644 --- a/speedwm.c +++ b/speedwm.c @@ -456,12 +456,14 @@ static void restack(Monitor *m); static void run(void); static void scantray(void); static void scan(void); -static void scratchpad_hide (); -static _Bool scratchpad_last_showed_is_killed (void); -static void scratchpad_remove (); -static void scratchpad_show (); -static void scratchpad_show_client (Client * c); -static void scratchpad_show_first (void); +/* scratchpad functions */ +static void scratchpad_hide(); +static _Bool scratchpad_last_showed_is_killed(void); +static void scratchpad_remove(); +static void scratchpad_show(); +static void scratchpad_show_client(Client *c); +static void scratchpad_show_first(void); +/* */ static void sendmon(Client *c, Monitor *m); static void setclientstate(Client *c, long state); static void setclienttagprop(Client *c); @@ -4042,13 +4044,15 @@ static _Bool scratchpad_last_showed_is_killed (void) return killed; } -static void scratchpad_remove () +void +scratchpad_remove() { - if (selmon -> sel && scratchpad_last_showed != NULL && selmon -> sel == scratchpad_last_showed) + if (selmon->sel && scratchpad_last_showed != NULL && selmon->sel == scratchpad_last_showed) scratchpad_last_showed = NULL; } -static void scratchpad_show () +void +scratchpad_show() { if (scratchpad_last_showed == NULL || scratchpad_last_showed_is_killed ()) scratchpad_show_first (); @@ -4091,7 +4095,8 @@ static void scratchpad_show () show(NULL); } -static void scratchpad_show_client (Client * c) +void +scratchpad_show_client(Client *c) { scratchpad_last_showed = c; c -> tags = selmon->tagset[selmon->seltags]; @@ -4099,7 +4104,8 @@ static void scratchpad_show_client (Client * c) arrange(selmon); } -static void scratchpad_show_first (void) +void +scratchpad_show_first(void) { for (Client * c = selmon -> clients; c != NULL; c = c -> next) {