diff options
| author | Lauri Kasanen <cand@gmx.com> | 2015-05-18 09:10:06 +0000 |
|---|---|---|
| committer | Lauri Kasanen <cand@gmx.com> | 2015-05-18 09:10:06 +0000 |
| commit | 03f69c0dd5244c50e430b430ee3a2e952b5a00fe (patch) | |
| tree | b1091de7479eb2cfc9bdf1b0ff9cb2089511f722 /src/Fl_x.cxx | |
| parent | f28b89f1d04922aa1fc5c90f6623fbd2b0400f8c (diff) | |
Add support for Fl::copy(..clipboard = 2..)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 9dee09514..094f271a5 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -994,6 +994,13 @@ static int get_xwinprop(Window wnd, Atom prop, long max_length, void Fl::copy(const char *stuff, int len, int clipboard, const char *type) { if (!stuff || len<0) return; + + if (clipboard >= 2) { + copy(stuff, len, 0, type); + copy(stuff, len, 1, type); + return; + } + if (len+1 > fl_selection_buffer_length[clipboard]) { delete[] fl_selection_buffer[clipboard]; fl_selection_buffer[clipboard] = new char[len+100]; |
