mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-24 06:20:19 +00:00
ui: clicking anywhere off the selected text will now clear the selection reliably.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user