Copy data from QR code to default clipboard instead of primary selection clipbord because the latter is in no obvious way reachable inside Phosh.

This commit is contained in:
nwlyoc 2021-05-01 19:16:56 +02:00 committed by Martijn Braam
parent 0046986e3e
commit e17a516564
1 changed files with 1 additions and 1 deletions

View File

@ -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: