config: move cycle_* bools to window_switcher struct

This commit is contained in:
Johan Malm 2023-04-20 22:31:26 +01:00 committed by Johan Malm
parent 0f37c04df0
commit 693c5bd937
3 changed files with 20 additions and 20 deletions

View file

@ -444,7 +444,7 @@ osd_update(struct server *server)
return;
}
if (rc.cycle_view_osd) {
if (rc.window_switcher.show) {
/* Display the actual OSD */
struct output *output;
wl_list_for_each(output, &server->outputs, link) {
@ -456,13 +456,13 @@ osd_update(struct server *server)
}
/* Outline current window */
if (rc.cycle_preview_outlines) {
if (rc.window_switcher.outlines) {
if (isfocusable(server->osd_state.cycle_view)) {
osd_update_preview_outlines(server->osd_state.cycle_view);
}
}
if (rc.cycle_preview_contents) {
if (rc.window_switcher.preview) {
preview_cycled_view(server->osd_state.cycle_view);
}
}