diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-11-03 12:50:18 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-11-03 12:50:18 +0100 |
| commit | c0c0ea18aa67a0a59b4c715c913748b10e7e4681 (patch) | |
| tree | 9de043779c32a9d19dcc5a6b409084720315ec7c /src | |
| parent | c22a7bb6a72fe9e2044b01fc26ddadda2aed2574 (diff) | |
Fix "fltk 1.4.x: hangs during paste in fluid code editor" (#818)
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx b/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx index beaacb908..f4ee2b764 100644 --- a/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx +++ b/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx @@ -669,6 +669,7 @@ void Fl_Wayland_Screen_Driver::copy(const char *stuff, int len, int clipboard, fl_selection_type[clipboard] = Fl::clipboard_plain_text; if (clipboard == 1) { Fl_Wayland_Screen_Driver *scr_driver = (Fl_Wayland_Screen_Driver*)Fl::screen_driver(); + if (scr_driver->seat->data_source) wl_data_source_destroy(scr_driver->seat->data_source); scr_driver->seat->data_source = wl_data_device_manager_create_data_source(scr_driver->seat->data_device_manager); // we transmit the adequate value of index in fl_selection_buffer[index] |
