diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-06-30 20:16:19 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-06-30 20:16:19 +0200 |
commit | b17e1bcf8902e88e2f9579101c6a1cfa35d5b83d (patch) | |
tree | b17095e737cb99240ee0fd0c511ead8e7e75ecd7 /src/gui/gui-focus.c | |
parent | c868a4d3f8b53703ed237dcf31d5e9df93fd9fcb (diff) | |
download | weechat-b17e1bcf8902e88e2f9579101c6a1cfa35d5b83d.zip |
api: add pointer "_bar_window" in hashtable sent to hook focus callback (closes #1450)
Diffstat (limited to 'src/gui/gui-focus.c')
-rw-r--r-- | src/gui/gui-focus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/gui-focus.c b/src/gui/gui-focus.c index 52f6e3edc..cd8cd94a9 100644 --- a/src/gui/gui-focus.c +++ b/src/gui/gui-focus.c @@ -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); |