diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-10-22 18:04:23 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-10-22 18:04:23 +0000 |
| commit | db2529159cb7362d143a24c7a23626860d3f2e69 (patch) | |
| tree | 90e2da7472a70c7442499653b3ba0823a660c9cc | |
| parent | doc: foot.5: we support “real” urgency through XDG activation (diff) | |
term: bell: simplify if-statement - we don’t need two nested levels
| -rw-r--r-- | terminal.c | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -3072,17 +3072,15 @@ term_bell(struct terminal *term) if (!term->bell_action_enabled) return; - if (!term->kbd_focus) { - if (term->conf->bell.urgent) { - if (!wayl_win_set_urgent(term->window)) { - /* - * Urgency (xdg-activation) is relatively new in - * Wayland. Fallback to our old, “faked”, urgency - - * rendering our window margins in red - */ - term->render.urgency = true; - term_damage_margins(term); - } + if (term->conf->bell.urgent && !term->kbd_focus) { + if (!wayl_win_set_urgent(term->window)) { + /* + * Urgency (xdg-activation) is relatively new in + * Wayland. Fallback to our old, “faked”, urgency - + * rendering our window margins in red + */ + term->render.urgency = true; + term_damage_margins(term); } } |
