From e17a516564e7eff3d47523d047225bacd4cc6ad2 Mon Sep 17 00:00:00 2001 From: nwlyoc Date: Sat, 1 May 2021 19:16:56 +0200 Subject: [PATCH] Copy data from QR code to default clipboard instead of primary selection clipbord because the latter is in no obvious way reachable inside Phosh. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 947b651..b096e8e 100644 --- a/src/main.c +++ b/src/main.c @@ -496,7 +496,7 @@ on_zbar_dialog_response(GtkDialog *dialog, int response, char *data) { GdkDisplay *display = gtk_widget_get_display(GTK_WIDGET(dialog)); gdk_clipboard_set_text( - gdk_display_get_primary_clipboard(display), + gdk_display_get_clipboard(display), data); } case GTK_RESPONSE_CANCEL: