WPrefs: send SIGUSR2 to wmaker after saving settings

The Wayland event backend stub for send_wm_command was a no-op, so
WPrefs settings changes never triggered a reread in the running wmaker.
Now sends SIGUSR2 to the parent process (wmaker) on "Reconfigure",
causing wDefaultsCheckDomains to run and apply changes immediately.
This commit is contained in:
Window Maker 2026-05-25 11:51:25 +02:00
parent 9a4438fb65
commit 35226c8588
1 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,8 @@
#include <string.h>
#include <strings.h>
#include <signal.h>
#include <unistd.h>
#include <xkbcommon/xkbcommon.h>
/* ------------------------------------------------------------------ */
@ -373,7 +375,11 @@ static void wl_keysym_convert_case(void *ectx, WMNativeKeysym sym,
}
static void wl_send_wm_command(void *ectx, const char *cmd)
{ (void)ectx; (void)cmd; /* TODO: signal wmaker via PID file */ }
{
(void)ectx;
if (cmd && strcmp(cmd, "Reconfigure") == 0)
kill(getppid(), SIGUSR2);
}
static void wl_set_window_hints(void *ectx, WNativeWindow w,
int minw, int minh, int maxw, int maxh, int bw, int bh)