indentation changes to scratchpad patch

This commit is contained in:
speedie 2022-10-06 09:58:29 +02:00
parent a31f712033
commit a608e1c465

View file

@ -456,12 +456,14 @@ static void restack(Monitor *m);
static void run(void); static void run(void);
static void scantray(void); static void scantray(void);
static void scan(void); static void scan(void);
static void scratchpad_hide (); /* scratchpad functions */
static _Bool scratchpad_last_showed_is_killed (void); static void scratchpad_hide();
static void scratchpad_remove (); static _Bool scratchpad_last_showed_is_killed(void);
static void scratchpad_show (); static void scratchpad_remove();
static void scratchpad_show_client (Client * c); static void scratchpad_show();
static void scratchpad_show_first (void); static void scratchpad_show_client(Client *c);
static void scratchpad_show_first(void);
/* */
static void sendmon(Client *c, Monitor *m); static void sendmon(Client *c, Monitor *m);
static void setclientstate(Client *c, long state); static void setclientstate(Client *c, long state);
static void setclienttagprop(Client *c); static void setclienttagprop(Client *c);
@ -4042,13 +4044,15 @@ static _Bool scratchpad_last_showed_is_killed (void)
return killed; 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; scratchpad_last_showed = NULL;
} }
static void scratchpad_show () void
scratchpad_show()
{ {
if (scratchpad_last_showed == NULL || scratchpad_last_showed_is_killed ()) if (scratchpad_last_showed == NULL || scratchpad_last_showed_is_killed ())
scratchpad_show_first (); scratchpad_show_first ();
@ -4091,7 +4095,8 @@ static void scratchpad_show ()
show(NULL); show(NULL);
} }
static void scratchpad_show_client (Client * c) void
scratchpad_show_client(Client *c)
{ {
scratchpad_last_showed = c; scratchpad_last_showed = c;
c -> tags = selmon->tagset[selmon->seltags]; c -> tags = selmon->tagset[selmon->seltags];
@ -4099,7 +4104,8 @@ static void scratchpad_show_client (Client * c)
arrange(selmon); arrange(selmon);
} }
static void scratchpad_show_first (void) void
scratchpad_show_first(void)
{ {
for (Client * c = selmon -> clients; c != NULL; c = c -> next) for (Client * c = selmon -> clients; c != NULL; c = c -> next)
{ {