mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-27 07:58:07 -04:00
term: bell: simplify if-statement - we don’t need two nested levels
This commit is contained in:
parent
00c0bc12aa
commit
db2529159c
1 changed files with 9 additions and 11 deletions
20
terminal.c
20
terminal.c
|
|
@ -3072,17 +3072,15 @@ term_bell(struct terminal *term)
|
||||||
if (!term->bell_action_enabled)
|
if (!term->bell_action_enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!term->kbd_focus) {
|
if (term->conf->bell.urgent && !term->kbd_focus) {
|
||||||
if (term->conf->bell.urgent) {
|
if (!wayl_win_set_urgent(term->window)) {
|
||||||
if (!wayl_win_set_urgent(term->window)) {
|
/*
|
||||||
/*
|
* Urgency (xdg-activation) is relatively new in
|
||||||
* Urgency (xdg-activation) is relatively new in
|
* Wayland. Fallback to our old, “faked”, urgency -
|
||||||
* Wayland. Fallback to our old, “faked”, urgency -
|
* rendering our window margins in red
|
||||||
* rendering our window margins in red
|
*/
|
||||||
*/
|
term->render.urgency = true;
|
||||||
term->render.urgency = true;
|
term_damage_margins(term);
|
||||||
term_damage_margins(term);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue