ui: clicking anywhere off the selected text will now clear the selection reliably.

This commit is contained in:
2026-03-23 16:31:06 -06:00
parent 65707f53b7
commit b9e4113c81

View File

@@ -2640,6 +2640,11 @@ gtk_xtext_button_press (GtkWidget * widget, GdkEventButton * event)
xtext->select_start_x = x;
xtext->select_start_y = y;
xtext->select_start_adj = xtext_adj_get_value (xtext->adj);
if (xtext->buffer->last_ent_start)
{
gtk_xtext_unselect (xtext);
xtext->mark_stamp = FALSE;
}
return FALSE;
}