1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: always send the signal "buffer_switch", even when the buffer is opening (closes #2198)

This commit is contained in:
Sébastien Helleu
2024-10-06 20:57:54 +02:00
parent 453e60ed23
commit 8223da0fe6
2 changed files with 7 additions and 3 deletions
+1
View File
@@ -19,6 +19,7 @@
- irc: do not strip trailing spaces from incoming IRC messages
- irc: fix crash on /list buffer when a filter is set ([#2197](https://github.com/weechat/weechat/issues/2197))
- relay/api: fix empty nicklist in remote buffers after connection or reconnection
- core: always send the signal "buffer_switch", even when the buffer is opening ([#2198](https://github.com/weechat/weechat/issues/2198))
- lua: fix compilation on Fedora with Lua < 5.2.0 ([#2173](https://github.com/weechat/weechat/issues/2173), [#2174](https://github.com/weechat/weechat/issues/2174))
- core: fix build on Android ([#2180](https://github.com/weechat/weechat/issues/2180))
+6 -3
View File
@@ -184,7 +184,8 @@ gui_buffer_search_notify (const char *notify)
}
/*
* Sends a buffer signal (only if the buffer is completely opened.
* Sends a buffer signal, only if the buffer is completely opened or if
* the signal is "buffer_switch".
*/
int
@@ -192,8 +193,10 @@ gui_buffer_send_signal (struct t_gui_buffer *buffer,
const char *signal,
const char *type_data, void *signal_data)
{
return (buffer->opening) ?
WEECHAT_RC_OK : hook_signal_send (signal, type_data, signal_data);
if (buffer->opening && (string_strcmp (signal, "buffer_switch") != 0))
return WEECHAT_RC_OK;
return hook_signal_send (signal, type_data, signal_data);
}
/*