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 /src/menu.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 'src/menu.cc')
-rw-r--r-- | src/menu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/menu.cc b/src/menu.cc index 0a33e0ce..cc2245bf 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -2,7 +2,7 @@ * File: menu.cc * * Copyright (C) 2005-2007 Jorge Arellano Cid <jcid@dillo.org> - * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com> + * Copyright (C) 2024-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 @@ -89,7 +89,7 @@ static void Menu_copy_urlstr_cb(Fl_Widget*, void *user_data) { if (user_data) { DilloUrl *url = (DilloUrl *)user_data ; - a_UIcmd_copy_urlstr(popup_bw, URL_STR(url)); + a_UIcmd_copy_urlstr(popup_bw, URL_STR(url), 2); } } |