diff options
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) { |
