mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Change ui_win_has_attention() logic
This commit is contained in:
parent
2dcbaf98c0
commit
6df062b542
@ -999,12 +999,14 @@ ui_win_unread(int index)
|
|||||||
gboolean
|
gboolean
|
||||||
ui_win_has_attention(int index)
|
ui_win_has_attention(int index)
|
||||||
{
|
{
|
||||||
|
gboolean ret = FALSE;
|
||||||
|
|
||||||
ProfWin* window = wins_get_by_num(index);
|
ProfWin* window = wins_get_by_num(index);
|
||||||
if (window) {
|
if (window) {
|
||||||
return win_has_attention(window);
|
ret = win_has_attention(window);
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user