Skip to content

Commit c1de374

Browse files
committed
server: apply ninb_opacity on config reload
1 parent 4cfc058 commit c1de374

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

waywall/server/ui.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,13 @@ server_ui_use_config(struct server_ui *ui, struct server_ui_config *config) {
486486
wl_surface_damage_buffer(ui->root.surface, 0, 0, INT32_MAX, INT32_MAX);
487487
wl_surface_commit(ui->root.surface);
488488
}
489+
490+
struct server_view *view;
491+
wl_list_for_each (view, &ui->views, link) {
492+
if (!view->current.centered && view->alpha_surface) {
493+
wp_alpha_modifier_surface_v1_set_multiplier(view->alpha_surface, config->ninb_opacity);
494+
}
495+
}
489496
}
490497

491498
struct server_ui_config *

0 commit comments

Comments
 (0)