@@ -75,7 +75,7 @@ use crate::platform::linux::{
75
75
LinuxClient , get_xkb_compose_state, is_within_click_distance, open_uri_internal, read_fd,
76
76
reveal_path_internal,
77
77
wayland:: {
78
- clipboard:: { Clipboard , DataOffer , FILE_LIST_MIME_TYPE , TEXT_MIME_TYPE } ,
78
+ clipboard:: { Clipboard , DataOffer , FILE_LIST_MIME_TYPE , TEXT_MIME_TYPES } ,
79
79
cursor:: Cursor ,
80
80
serial:: { SerialKind , SerialTracker } ,
81
81
window:: WaylandWindow ,
@@ -778,8 +778,10 @@ impl LinuxClient for WaylandClient {
778
778
state. clipboard . set_primary ( item) ;
779
779
let serial = state. serial_tracker . get ( SerialKind :: KeyPress ) ;
780
780
let data_source = primary_selection_manager. create_source ( & state. globals . qh , ( ) ) ;
781
+ for mime_type in TEXT_MIME_TYPES {
782
+ data_source. offer ( mime_type. to_string ( ) ) ;
783
+ }
781
784
data_source. offer ( state. clipboard . self_mime ( ) ) ;
782
- data_source. offer ( TEXT_MIME_TYPE . to_string ( ) ) ;
783
785
primary_selection. set_selection ( Some ( & data_source) , serial) ;
784
786
}
785
787
}
@@ -796,8 +798,10 @@ impl LinuxClient for WaylandClient {
796
798
state. clipboard . set ( item) ;
797
799
let serial = state. serial_tracker . get ( SerialKind :: KeyPress ) ;
798
800
let data_source = data_device_manager. create_data_source ( & state. globals . qh , ( ) ) ;
801
+ for mime_type in TEXT_MIME_TYPES {
802
+ data_source. offer ( mime_type. to_string ( ) ) ;
803
+ }
799
804
data_source. offer ( state. clipboard . self_mime ( ) ) ;
800
- data_source. offer ( TEXT_MIME_TYPE . to_string ( ) ) ;
801
805
data_device. set_selection ( Some ( & data_source) , serial) ;
802
806
}
803
807
}
0 commit comments