1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

api: add pointer "_bar_window" in hashtable sent to hook focus callback (closes #1450)

This commit is contained in:
Sébastien Helleu
2020-06-30 20:16:19 +02:00
parent c868a4d3f8
commit b17e1bcf89
6 changed files with 20 additions and 0 deletions
+1
View File
@@ -241,6 +241,7 @@ gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key)
HASHTABLE_SET_STR_NOT_NULL("_chat_eol", focus_info->chat_eol);
/* bar/item */
HASHTABLE_SET_POINTER("_bar_window", focus_info->bar_window);
if (focus_info->bar_window)
{
HASHTABLE_SET_STR("_bar_name", ((focus_info->bar_window)->bar)->name);