workspaces: react to Reconfigure

Changes in `<desktops><names>` or `<desktop><number="" prefix="">` required
restarting labwc to take effect.

This commit adds `workspaces_reconfigure()` to update `server->workspaces` on
Reconfigure.
This commit is contained in:
tokyo4j 2024-04-17 18:09:01 +09:00 committed by Hiroaki Yamamoto
parent d64e3915a3
commit bc0174d849
3 changed files with 83 additions and 4 deletions

View file

@ -27,5 +27,6 @@ void workspaces_destroy(struct server *server);
void workspaces_osd_hide(struct seat *seat);
struct workspace *workspaces_find(struct workspace *anchor, const char *name,
bool wrap);
void workspaces_reconfigure(struct server *server);
#endif /* LABWC_WORKSPACES_H */