From 9c2529ad36ce90e20253782b70e53503c8637bef Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Sun, 9 Oct 2022 15:09:13 +0100 Subject: [PATCH] desk_add: call status_send for external helpers When adding/removing to the desk count, send the status of that information, so that external helpers listening via FvwmMFL are updated on that change when it happens. --- fvwm/virtual.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fvwm/virtual.c b/fvwm/virtual.c index 811487a8f..e27741f36 100644 --- a/fvwm/virtual.c +++ b/fvwm/virtual.c @@ -49,6 +49,7 @@ #include "icons.h" #include "stack.h" #include "functions.h" +#include "builtins.h" /* ---------------------------- local definitions -------------------------- */ @@ -2985,6 +2986,9 @@ desk_add_fw(FvwmWindow *fw) dfws = fxcalloc(1, sizeof *dfws); dfws->fw = fw; TAILQ_INSERT_TAIL(&df_loop->desk_fvwmwin_q, dfws, entry); + + status_send(); + return; } } @@ -2997,6 +3001,8 @@ desk_add_fw(FvwmWindow *fw) TAILQ_INSERT_TAIL(&df->desk_fvwmwin_q, dfws, entry); TAILQ_INSERT_TAIL(&desktop_fvwm_q, df, entry); + + status_send(); } void @@ -3010,6 +3016,7 @@ desk_del_fw(FvwmWindow *fw) if (dfws->fw == fw) { TAILQ_REMOVE(&df->desk_fvwmwin_q, dfws, entry); free(dfws); + status_send(); break; } }