From 1e5da933a4ef2c5de8ca711215918e9f3ff9df3e Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 6 May 2025 23:46:26 +0200 Subject: Copy links to clipboard selection too Selecting text in the page copies only to the primary selection. Copying links via the context menu now places the URL both in the primary and clipboard selections so it can also be pasted with Ctrl+V. See: https://github.com/dillo-browser/dillo/issues/228 --- dw/selection.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dw/selection.cc') diff --git a/dw/selection.cc b/dw/selection.cc index a69eb82a..899fad69 100644 --- a/dw/selection.cc +++ b/dw/selection.cc @@ -2,6 +2,7 @@ * Dillo Widget * * Copyright 2005-2007 Sebastian Geerken + * Copyright 2025 Rodrigo Arias Mallo * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -494,7 +495,7 @@ void SelectionState::copy() delete i; } - layout->copySelection(strbuf.getChars()); + layout->copySelection(strbuf.getChars(), 0); } } -- cgit v1.2.3