Halt window switcher on Reconfigure

There was an invalid memory access (since introduction of thumbnail
style in 2e9292b) with following steps:

1. Press Alt-Tab
2. Update `<windowSwitcher><osd><style>` from `classic` to `thumbnail`
3. Run `Reconfigure`
4. Press Alt-Tab again

...because `cycle_osd_thumbnail_update()` is called even though
`cycle_osd_output->items` holds `cycle_osd_classic_item`.

This commit halts window switcher on `Reconfigure` to clear
`cycle_osd_output->items` and avoid that invalid memory access.
This commit is contained in:
tokyo4j 2025-12-31 19:15:11 +09:00 committed by Consolatis
parent 8ad96c0410
commit 9f50971e0b

View file

@ -97,6 +97,7 @@ reload_config_and_theme(struct server *server)
view_reload_ssd(view); view_reload_ssd(view);
} }
cycle_finish(server, /*switch_focus*/ false);
menu_reconfigure(server); menu_reconfigure(server);
seat_reconfigure(server); seat_reconfigure(server);
regions_reconfigure(server); regions_reconfigure(server);