diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-03 19:40:37 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-06 16:45:22 +0100 |
| commit | 8dd3ff8e12a7cabce9a1931831b311bf898aaaaf (patch) | |
| tree | 27d5e353daf6aaa795df3fb8046c2bf9f11775d0 /src/Fl.cxx | |
| parent | 69773338b9bdd91c5f8e94400f68172ccfc098ac (diff) | |
X11: Optionally copy selection buffer to clipboard (STR 3229)
The new method Fl::selection_to_clipboard(int) enables copying
selection data to the clipboard on X11 if it is set to 1.
This feature was requested by STR 3229 and the implementation was
inspired by an `xterm` feature named "Select to Clipboard" which can
be enabled by 'ctrl + middle mouse button + "Select to Clipboard"'
in an xterm window.
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 53fb7fff1..fa0620fa6 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,7 +1,7 @@ // // Main event handling code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2023 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -74,6 +74,7 @@ Fl_Callback_Reason Fl::callback_reason_ = FL_REASON_UNKNOWN; unsigned char Fl::options_[] = { 0, 0 }; unsigned char Fl::options_read_ = 0; +int Fl::selection_to_clipboard_ = 0; Fl_Window *fl_xfocus = NULL; // which window X thinks has focus Fl_Window *fl_xmousewin; // which window X thinks has FL_ENTER |
