FLTK logo

[master] 0bbf02e - Wayland: Implement 'Primary selection' protocol - cont'd (#1621)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.commit  ]
 
[ Previous Message ] [ Next Message ]

[master] 0bbf02e - Wayland: Implement 'Primary selection' protocol - cont'd (#1621) "ManoloFLTK" 08:32 Oct 03  
 
commit 0bbf02e76300f9ac4970d6d4666a56d56e409fd3
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Oct 3 10:26:00 2026 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Oct 3 10:26:00 2026 +0200

    Wayland: Implement 'Primary selection' protocol - cont'd (#1621)

 src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx
index 659be12..0a56acf 100644
--- src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx
+++ src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx
@@ -606,6 +606,10 @@ static const struct zwp_primary_selection_source_v1_listener primary_selection_s
 
 static void primary_selection_source_handle_cancelled(void *data,
                                                       struct zwp_primary_selection_source_v1 *source) {
+  zwp_primary_selection_source_v1_destroy(source);
+  struct Fl_Wayland_Screen_Driver::seat *seat = (struct Fl_Wayland_Screen_Driver::seat *)data;
+  seat->primary_selection_source = zwp_primary_selection_device_manager_v1_create_source(seat->primary_selection_device_manager);
+  zwp_primary_selection_source_v1_add_listener(seat->primary_selection_source, &primary_selection_source_listener, seat);
 }
 
 
[ Direct Link to Message ]
 
     
[ Previous Message ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.