diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-05-06 23:46:26 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-05-07 23:31:02 +0200 |
commit | 1e5da933a4ef2c5de8ca711215918e9f3ff9df3e (patch) | |
tree | eb387b2afd3059d81a5dae61a2d02025f04c328c /dw/selection.cc | |
parent | ab78cb4b3db6d63cb8da5a9d1390c2b6e50e69af (diff) |
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
Diffstat (limited to 'dw/selection.cc')
-rw-r--r-- | dw/selection.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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 <sgeerken@dillo.org> + * Copyright 2025 Rodrigo Arias Mallo <rodarima@gmail.com> * * 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); } } |