This commit is contained in:
Nishi 2025-12-28 19:13:37 +09:00
commit c1115323af
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 8 additions and 0 deletions

View file

@ -101,6 +101,7 @@ void module_reload(MwWidget box, MwWidget user, xl_node_t* node) {
btn = MwVaCreateWidget(MwButtonClass, "button", user, x, y, 18, 18,
MwNflat, 1,
MwNpixmap, px,
MwNborderWidth, 1,
NULL);
MwVaApply(btn,

View file

@ -13,6 +13,12 @@ reload_all () {
kill_all -HUP
}
restart_all () {
kill_all
sleep 0.5
start_all
}
start_all () {
"@CMAKE_INSTALL_FULL_BINDIR@/mpanel" &
PANEL="$!"
@ -24,6 +30,7 @@ start_all () {
trap "stop_all" INT
trap "stop_all" TERM
trap "reload_all" HUP
trap "restart_all" USR1
start_all