diff options
| author | ivan-boikov <ik.boikov.public@protonmail.com> | 2024-08-18 14:00:01 +0200 |
|---|---|---|
| committer | ivan-boikov <ik.boikov.public@protonmail.com> | 2024-08-18 17:01:02 +0200 |
| commit | a6937f8490d6e1a1c3fe4df88bf520a46a92cc87 (patch) | |
| tree | bffe2899eebe3700bce726f307f46716016b3fb6 /patches | |
| parent | 7a3e1268d105f85ad5e4ca6bf2f34e67793226db (diff) | |
restartsig fix merge + formatting
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/dwm-restartsig-20180523-6.2.diff | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/patches/dwm-restartsig-20180523-6.2.diff b/patches/dwm-restartsig-20180523-6.2.diff index f1f8680..fc72b22 100644 --- a/patches/dwm-restartsig-20180523-6.2.diff +++ b/patches/dwm-restartsig-20180523-6.2.diff @@ -34,9 +34,9 @@ index a9ac303..e559429 100644 TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, -+ { MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} }, ++ { MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} }, }; - + /* button definitions */ diff --git a/dwm.1 b/dwm.1 index 13b3729..36a331c 100644 @@ -70,15 +70,10 @@ diff --git a/dwm.c b/dwm.c index bb95e26..286eecd 100644 --- a/dwm.c +++ b/dwm.c -@@ -205,6 +205,8 @@ static void setup(void); - static void seturgent(Client *c, int urg); - static void showhide(Client *c); - static void sigchld(int unused); +@@ -205,1 +205,3 @@ static void showhide(Client *c); +static void sighup(int unused); +static void sigterm(int unused); static void spawn(const Arg *arg); - static void tag(const Arg *arg); - static void tagmon(const Arg *arg); @@ -260,6 +262,7 @@ static void (*handler[LASTEvent]) (XEvent *) = { [UnmapNotify] = unmapnotify }; @@ -94,11 +89,11 @@ index bb95e26..286eecd 100644 + if(arg->i) restart = 1; running = 0; } - + @@ -1536,6 +1540,9 @@ setup(void) /* clean up any zombies immediately */ sigchld(0); - + + signal(SIGHUP, sighup); + signal(SIGTERM, sigterm); + @@ -107,7 +102,7 @@ index bb95e26..286eecd 100644 sw = DisplayWidth(dpy, screen); @@ -1637,6 +1644,20 @@ sigchld(int unused) } - + void +sighup(int unused) +{ @@ -134,6 +129,5 @@ index bb95e26..286eecd 100644 cleanup(); XCloseDisplay(dpy); return EXIT_SUCCESS; --- +-- 2.7.4 - |
