mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
dwmc: adding string support ref. #284
This commit is contained in:
parent
d9f79bea73
commit
2e496ed931
@ -1368,6 +1368,9 @@ static Signal signals[] = {
|
|||||||
#if STACKER_PATCH
|
#if STACKER_PATCH
|
||||||
{ "pushstack", pushstack },
|
{ "pushstack", pushstack },
|
||||||
#endif // STACKER_PATCH
|
#endif // STACKER_PATCH
|
||||||
|
#if FLOATPOS_PATCH
|
||||||
|
{ "floatpos", floatpos },
|
||||||
|
#endif // FLOATPOS_PATCH
|
||||||
#if FOCUSURGENT_PATCH
|
#if FOCUSURGENT_PATCH
|
||||||
{ "focusurgent", focusurgent },
|
{ "focusurgent", focusurgent },
|
||||||
#endif // FOCUSURGENT_PATCH
|
#endif // FOCUSURGENT_PATCH
|
||||||
|
@ -100,6 +100,9 @@ case $# in
|
|||||||
setmfact)
|
setmfact)
|
||||||
signal $1 f $2
|
signal $1 f $2
|
||||||
;;
|
;;
|
||||||
|
floatpos)
|
||||||
|
signal $1 v $2
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown command ($1) or too many arguments"
|
echo "Unknown command ($1) or too many arguments"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -83,6 +83,8 @@ fake_signal(void)
|
|||||||
#endif // IPC_PATCH
|
#endif // IPC_PATCH
|
||||||
else if (strncmp(param, "f", n - len_str_sig) == 0)
|
else if (strncmp(param, "f", n - len_str_sig) == 0)
|
||||||
sscanf(fsignal + len_indicator + n, "%f", &(arg.f));
|
sscanf(fsignal + len_indicator + n, "%f", &(arg.f));
|
||||||
|
else if (strncmp(param, "v", n - len_str_sig) == 0)
|
||||||
|
arg.v = &(fsignal[len_indicator + n + 1]);
|
||||||
else return 1;
|
else return 1;
|
||||||
|
|
||||||
// Check if a signal was found, and if so handle it
|
// Check if a signal was found, and if so handle it
|
||||||
|
Loading…
Reference in New Issue
Block a user