7 Commits

Author SHA1 Message Date
776d24695e keep X11 selection ownership off the chat window 2026-09-18 05:29:03 -06:00
deepend-tildeclub
61ff308c9f Merge pull request #395 from B4reMetal/fix-userlist-color-pref
fix(userlist): decouple userlist nick colors from text_color_nicks
2026-09-16 14:00:16 -07:00
2672f9b087 Start acknowleding 2.20 development 2026-09-16 01:16:35 -06:00
4315a75a12 add 2.19.1 release notes 2026-09-16 00:10:49 -06:00
BareMetal
15905bebb1 fix(userlist): decouple userlist nick colors from text_color_nicks 2026-09-15 19:38:34 -06:00
deepend-tildeclub
fc4a7454ad Merge pull request #391 from ZoiteChat/fix-away-tracking
Fix away tracking
2026-09-15 11:45:16 -07:00
87410aea50 Fix away tracking 2026-09-15 12:30:04 -06:00
8 changed files with 93 additions and 19 deletions

View File

@@ -1 +1 @@
2.19.0
2.20.0-dev

View File

@@ -29,6 +29,22 @@
<id>zoitechat.desktop</id>
</provides>
<releases>
<release date="2026-09-15" version="2.19.1">
<description>
<ul>
<li>Fixed /msg messages showing twice on servers using IRCv3 <code>echo-message</code>.</li>
<li>Fixed escaping a leading command slash so <code>//text</code> sends <code>/text</code> as normal chat.</li>
<li>Fixed automatic away clearing when sending messages on servers using <code>echo-message</code>.</li>
<li>Fixed other users' away status not updating until rejoining a channel when <code>away-notify</code> updates are missed.</li>
<li>Fixed private messages and <code>/me</code> actions being routed to the wrong window when using WeeChat's IRC relay, while preserving channel ACTION routing.</li>
<li>Fixed a Flatpak startup error caused by the D-Bus service still using the old HexChat app ID.</li>
<li>Fixed optional Windows 10 theme downloads in the Windows installer.</li>
<li>Fixed the GTK warning when switching from channel tabs to the channel tree.</li>
<li>Fixed GTK3 theme archive root detection so themes with an <code>index.theme</code> file are preferred correctly.</li>
<li>Fixed source-build configuration when plugin AppStream metadata installation is disabled, and corrected the minimum Meson version to 0.59.</li>
</ul>
</description>
</release>
<release date="2026-07-28" version="2.19.0">
<description>
<ul>

View File

@@ -1,6 +1,20 @@
ZoiteChat ChangeLog
=================
2.19.1 (2026-09-15)
-------------------
- Fixed ``/msg`` messages showing twice on servers using IRCv3 ``echo-message``.
- Fixed escaping a leading command slash so ``//text`` sends ``/text`` as normal chat.
- Fixed automatic away clearing when sending messages on servers using ``echo-message``.
- Fixed other users' away status not updating until rejoining a channel when ``away-notify`` updates are missed.
- Fixed private messages and ``/me`` actions being routed to the wrong window when using WeeChat's IRC relay, while preserving channel ACTION routing.
- Fixed a Flatpak startup error caused by the D-Bus service still using the old HexChat app ID.
- Fixed optional Windows 10 theme downloads in the Windows installer.
- Fixed the GTK warning when switching from channel tabs to the channel tree.
- Fixed GTK3 theme archive root detection so themes with an ``index.theme`` file are preferred correctly.
- Fixed source-build configuration when plugin AppStream metadata installation is disabled, and corrected the minimum Meson version to 0.59.
2.19.0 (2026-07-28)
-------------------

View File

@@ -463,8 +463,7 @@ doover:
while (list)
{
sess = list->data;
if (!sess->server->have_awaynotify)
sess->done_away_check = FALSE;
sess->done_away_check = FALSE;
list = list->next;
}
loop++;

View File

@@ -1266,8 +1266,6 @@ attr_list_has_attrs (PangoAttrList *attrs)
static void
sexy_spell_entry_recheck_all(SexySpellEntry *entry)
{
GdkRectangle rect;
GtkAllocation allocation;
GtkWidget *widget = GTK_WIDGET(entry);
int length, i, text_len;
const char *text;
@@ -1299,15 +1297,8 @@ sexy_spell_entry_recheck_all(SexySpellEntry *entry)
gtk_entry_set_attributes (GTK_ENTRY (entry), attr_list_has_attrs (entry->priv->attr_list) ? entry->priv->attr_list : NULL);
if (gtk_widget_get_realized (GTK_WIDGET(entry)))
{
gtk_widget_get_allocation (GTK_WIDGET(entry), &allocation);
rect.x = 0; rect.y = 0;
rect.width = allocation.width;
rect.height = allocation.height;
gdk_window_invalidate_rect(gtk_widget_get_window (widget), &rect, TRUE);
}
/* GtkEntry shares its parent's GdkWindow in GTK3; redraw the widget area. */
gtk_widget_queue_draw (widget);
}
static gboolean

View File

@@ -683,7 +683,7 @@ theme_manager_get_userlist_palette_behavior (const PangoFontDescription *font_de
behavior.font_desc = font_desc;
behavior.apply_background = TRUE;
behavior.apply_foreground = (prefs.hex_gui_ulist_color || prefs.hex_text_color_nicks) ? FALSE : TRUE;
behavior.apply_foreground = prefs.hex_gui_ulist_color ? FALSE : TRUE;
return behavior;
}

View File

@@ -594,7 +594,7 @@ fe_userlist_rehash (session *sess, struct User *user)
nick_token = THEME_TOKEN_TAB_AWAY;
have_nick_token = TRUE;
}
else if (prefs.hex_gui_ulist_color || prefs.hex_text_color_nicks)
else if (prefs.hex_gui_ulist_color)
{
int mirc_index = text_color_of (user->nick);
@@ -635,7 +635,7 @@ fe_userlist_insert (session *sess, struct User *newuser, gboolean sel)
nick_token = THEME_TOKEN_TAB_AWAY;
have_nick_token = TRUE;
}
else if (prefs.hex_gui_ulist_color || prefs.hex_text_color_nicks)
else if (prefs.hex_gui_ulist_color)
{
int mirc_index = text_color_of (newuser->nick);

View File

@@ -273,6 +273,8 @@ static void gtk_xtext_render_page (GtkXText * xtext);
static void gtk_xtext_calc_lines (xtext_buffer *buf, int);
static gboolean gtk_xtext_is_selecting (GtkXText *xtext);
static char *gtk_xtext_selection_get_text (GtkXText *xtext, int *len_ret);
static void gtk_xtext_clipboard_get (GtkClipboard *, GtkSelectionData *, guint, gpointer);
static void gtk_xtext_clipboard_clear (GtkClipboard *, gpointer);
static textentry *gtk_xtext_nth (GtkXText *xtext, int line, int *subline);
static void gtk_xtext_adjustment_changed (GtkAdjustment * adj,
GtkXText * xtext);
@@ -1082,9 +1084,29 @@ gtk_xtext_new (const XTextColor *palette, int separator)
return GTK_WIDGET (xtext);
}
static void
gtk_xtext_release_selections (GtkXText *xtext)
{
GdkAtom selections[] = { GDK_SELECTION_PRIMARY, GDK_SELECTION_SECONDARY };
guint i;
if (!gtk_widget_has_screen (GTK_WIDGET (xtext)))
return;
for (i = 0; i < G_N_ELEMENTS (selections); i++)
{
GtkClipboard *clipboard = gtk_widget_get_clipboard (GTK_WIDGET (xtext), selections[i]);
if (gtk_clipboard_get_owner (clipboard) == G_OBJECT (xtext))
gtk_clipboard_clear (clipboard);
}
}
static void
gtk_xtext_cleanup (GtkXText *xtext)
{
gtk_xtext_release_selections (xtext);
if (xtext->add_io_tag)
{
g_source_remove (xtext->add_io_tag);
@@ -1179,6 +1201,7 @@ gtk_xtext_finalize (GObject *object)
static void
gtk_xtext_unrealize (GtkWidget * widget)
{
gtk_xtext_release_selections (GTK_XTEXT (widget));
backend_deinit (GTK_XTEXT (widget));
/*
@@ -2743,8 +2766,16 @@ gtk_xtext_set_clip_owner (GtkWidget * xtext, GdkEventButton * event)
{
gtk_clipboard_set_text (gtk_widget_get_clipboard (xtext, GDK_SELECTION_CLIPBOARD), str, len);
gtk_selection_owner_set (xtext, GDK_SELECTION_PRIMARY, event ? event->time : GDK_CURRENT_TIME);
gtk_selection_owner_set (xtext, GDK_SELECTION_SECONDARY, event ? event->time : GDK_CURRENT_TIME);
/* Let GtkClipboard own the X11 selection window. Making xtext
* the selection owner forces its window native and bypasses
* GTK's toplevel backing buffer on subsequent redraws.
*/
gtk_clipboard_set_with_owner (gtk_widget_get_clipboard (xtext, GDK_SELECTION_PRIMARY),
gtk_xtext_selection_targets, G_N_ELEMENTS (gtk_xtext_selection_targets),
gtk_xtext_clipboard_get, gtk_xtext_clipboard_clear, G_OBJECT (xtext));
gtk_clipboard_set_with_owner (gtk_widget_get_clipboard (xtext, GDK_SELECTION_SECONDARY),
gtk_xtext_selection_targets, G_N_ELEMENTS (gtk_xtext_selection_targets),
gtk_xtext_clipboard_get, gtk_xtext_clipboard_clear, G_OBJECT (xtext));
}
g_free (str);
@@ -3197,6 +3228,29 @@ gtk_xtext_selection_get (GtkWidget * widget,
g_free (stripped);
}
static void
gtk_xtext_clipboard_get (GtkClipboard *clipboard, GtkSelectionData *selection_data,
guint info, gpointer owner)
{
int len;
char *text = gtk_xtext_selection_get_text (GTK_XTEXT (owner), &len);
if (text)
{
gtk_selection_data_set_text (selection_data, text, len);
g_free (text);
}
}
static void
gtk_xtext_clipboard_clear (GtkClipboard *clipboard, gpointer owner)
{
GtkXText *xtext = GTK_XTEXT (owner);
if (xtext->orig_buffer)
gtk_xtext_selection_kill (xtext, NULL);
}
static gboolean
gtk_xtext_scroll (GtkWidget *widget, GdkEventScroll *event)
{