dwmblocks doesn't receive signals on OpenBSD, OpenBSD doesn't implement sigqueue. Got rid of these.
This commit is contained in:
parent
484720bbba
commit
dbad3534f3
2 changed files with 9 additions and 1 deletions
2
config.h
2
config.h
|
@ -278,6 +278,7 @@ static Key keys[] = {
|
||||||
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||||
static Button buttons[] = {
|
static Button buttons[] = {
|
||||||
/* click event mask button function argument */
|
/* click event mask button function argument */
|
||||||
|
#ifndef __OpenBSD__
|
||||||
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
{ ClkWinTitle, 0, Button2, zoom, {0} },
|
||||||
{ ClkStatusText, 0, Button1, sigdwmblocks, {.i = 1} },
|
{ ClkStatusText, 0, Button1, sigdwmblocks, {.i = 1} },
|
||||||
{ ClkStatusText, 0, Button2, sigdwmblocks, {.i = 2} },
|
{ ClkStatusText, 0, Button2, sigdwmblocks, {.i = 2} },
|
||||||
|
@ -285,6 +286,7 @@ static Button buttons[] = {
|
||||||
{ ClkStatusText, 0, Button4, sigdwmblocks, {.i = 4} },
|
{ ClkStatusText, 0, Button4, sigdwmblocks, {.i = 4} },
|
||||||
{ ClkStatusText, 0, Button5, sigdwmblocks, {.i = 5} },
|
{ ClkStatusText, 0, Button5, sigdwmblocks, {.i = 5} },
|
||||||
{ ClkStatusText, ShiftMask, Button1, sigdwmblocks, {.i = 6} },
|
{ ClkStatusText, ShiftMask, Button1, sigdwmblocks, {.i = 6} },
|
||||||
|
#endif
|
||||||
{ ClkStatusText, ShiftMask, Button3, spawn, SHCMD("st -e nvim ~/.local/src/dwmblocks/config.h") },
|
{ ClkStatusText, ShiftMask, Button3, spawn, SHCMD("st -e nvim ~/.local/src/dwmblocks/config.h") },
|
||||||
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
|
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
|
||||||
{ ClkClientWin, MODKEY, Button2, defaultgaps, {0} },
|
{ ClkClientWin, MODKEY, Button2, defaultgaps, {0} },
|
||||||
|
|
8
dwm.c
8
dwm.c
|
@ -206,7 +206,6 @@ static void focusin(XEvent *e);
|
||||||
static void focusmon(const Arg *arg);
|
static void focusmon(const Arg *arg);
|
||||||
static void focusstack(const Arg *arg);
|
static void focusstack(const Arg *arg);
|
||||||
static Atom getatomprop(Client *c, Atom prop);
|
static Atom getatomprop(Client *c, Atom prop);
|
||||||
static int getdwmblockspid();
|
|
||||||
static int getrootptr(int *x, int *y);
|
static int getrootptr(int *x, int *y);
|
||||||
static long getstate(Window w);
|
static long getstate(Window w);
|
||||||
static int gettextprop(Window w, Atom atom, char *text, unsigned int size);
|
static int gettextprop(Window w, Atom atom, char *text, unsigned int size);
|
||||||
|
@ -246,7 +245,10 @@ static void setup(void);
|
||||||
static void seturgent(Client *c, int urg);
|
static void seturgent(Client *c, int urg);
|
||||||
static void showhide(Client *c);
|
static void showhide(Client *c);
|
||||||
static void sigchld(int unused);
|
static void sigchld(int unused);
|
||||||
|
#ifndef __OpenBSD__
|
||||||
|
static int getdwmblockspid();
|
||||||
static void sigdwmblocks(const Arg *arg);
|
static void sigdwmblocks(const Arg *arg);
|
||||||
|
#endif
|
||||||
static void sighup(int unused);
|
static void sighup(int unused);
|
||||||
static void sigterm(int unused);
|
static void sigterm(int unused);
|
||||||
static void spawn(const Arg *arg);
|
static void spawn(const Arg *arg);
|
||||||
|
@ -1016,6 +1018,7 @@ getatomprop(Client *c, Atom prop)
|
||||||
return atom;
|
return atom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __OpenBSD__
|
||||||
int
|
int
|
||||||
getdwmblockspid()
|
getdwmblockspid()
|
||||||
{
|
{
|
||||||
|
@ -1027,6 +1030,7 @@ getdwmblockspid()
|
||||||
dwmblockspid = pid;
|
dwmblockspid = pid;
|
||||||
return pid != 0 ? 0 : -1;
|
return pid != 0 ? 0 : -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
getrootptr(int *x, int *y)
|
getrootptr(int *x, int *y)
|
||||||
|
@ -1908,6 +1912,7 @@ sigterm(int unused)
|
||||||
quit(&a);
|
quit(&a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __OpenBSD__
|
||||||
void
|
void
|
||||||
sigdwmblocks(const Arg *arg)
|
sigdwmblocks(const Arg *arg)
|
||||||
{
|
{
|
||||||
|
@ -1924,6 +1929,7 @@ sigdwmblocks(const Arg *arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
spawn(const Arg *arg)
|
spawn(const Arg *arg)
|
||||||
|
|
Loading…
Reference in a new issue