diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-05-31 09:51:12 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-05-31 09:51:23 +0200 |
commit | 6df062b542d2376d464b2a9d8d6577fdf906cab4 (patch) | |
tree | 89c3ec34f5b4c6464100a7098d1212506b3f43f9 /src/ui | |
parent | 2dcbaf98c0e892996eac5bc6ff0bc80727617029 (diff) | |
download | profani-tty-6df062b542d2376d464b2a9d8d6577fdf906cab4.tar.gz |
Change ui_win_has_attention() logic
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/core.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 50fba846..f4ee4a86 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -999,12 +999,14 @@ ui_win_unread(int index) gboolean ui_win_has_attention(int index) { + gboolean ret = FALSE; + ProfWin* window = wins_get_by_num(index); if (window) { - return win_has_attention(window); - } else { - return 0; + ret = win_has_attention(window); } + + return ret; } |