It does not make sense otherwise, and has unfortunate
side-effects on Wayland.
gtk_text_im_set_focus_in (self);
gtk_text_reset_blink_time (self);
gtk_text_check_cursor_blink (self);
+ gtk_text_update_primary_selection (self);
}
else /* Focus out */
{
if (!gtk_widget_get_realized (GTK_WIDGET (self)))
return;
+ if (!gtk_widget_has_focus (GTK_WIDGET (self)))
+ return;
+
clipboard = gtk_widget_get_primary_clipboard (GTK_WIDGET (self));
if (priv->selection_bound != priv->current_pos)