From a72db2052820a88c13f7241000c3d3210b276954 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 17 Oct 2019 14:06:38 -0300 Subject: [PATCH] Fixing clipboard behavior on windows. --- src/selection/windows/paste.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selection/windows/paste.c b/src/selection/windows/paste.c index 2d01eae..e9bc93a 100644 --- a/src/selection/windows/paste.c +++ b/src/selection/windows/paste.c @@ -149,7 +149,7 @@ static void formatted_received(GtkClipboard *clipboard, GtkSelectionData *select static void targets_received(GtkClipboard *clipboard, GdkAtom *atoms, gint n_atoms, GtkWidget *widget) { - if(has_target(GTK_V3270_GET_CLASS(widget)->clipboard_formatted,atoms,n_atoms)) + if(lib3270_toggle(GTK_V3270(widget)->host,LIB3270_TOGGLE_SMART_PASTE) && has_target(GTK_V3270_GET_CLASS(widget)->clipboard_formatted,atoms,n_atoms)) { debug("Clipboard as TN3270 \"%s\" data",gdk_atom_name(GTK_V3270_GET_CLASS(widget)->clipboard_formatted)); -- libgit2 0.21.2