mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 15:35:03 +02:00
Fix drop data requests
This commit is contained in:
@@ -248,8 +248,11 @@ func run_loop(opts *Options, drop_dests map[string]*drop_dest, drag_sources map[
|
||||
}
|
||||
|
||||
request_mime_data := func() {
|
||||
for idx := range drop_status.accepted_mimes {
|
||||
lp.QueueDnDData(DC{Type: 'r', X: idx + 1})
|
||||
accepted := utils.NewSetWithItems(drop_status.accepted_mimes...)
|
||||
for idx, m := range drop_status.offered_mimes {
|
||||
if accepted.Has(m) {
|
||||
lp.QueueDnDData(DC{Type: 'r', X: idx + 1})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user