aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index c2bd871..8bcf0da 100644
--- a/dwm.c
+++ b/dwm.c
@@ -142,6 +142,7 @@ typedef struct {
} Rule;
/* function declarations */
+static void restart(Arg *arg);
static void applyrules(Client *c);
static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact);
static void arrange(Monitor *m);
@@ -275,6 +276,14 @@ static Window root, wmcheckwin;
struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
/* function implementations */
+
+void
+restart(const Arg *arg)
+{
+ char *a[] = {"dwm", NULL};
+ execvp(a[0], a);
+}
+
void
applyrules(Client *c)
{