Skip to content

Commit

Permalink
desk_add: call status_send for external helpers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ThomasAdam committed Oct 9, 2022
1 parent cbd620f commit 9c2529a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fvwm/virtual.c
Expand Up @@ -49,6 +49,7 @@
#include "icons.h"
#include "stack.h"
#include "functions.h"
#include "builtins.h"

/* ---------------------------- local definitions -------------------------- */

Expand Down Expand Up @@ -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;
}
}
Expand All @@ -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
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 9c2529a

Please sign in to comment.