selection: ignore drag-and-drops with unsupported mime-types

Specifically, make sure we do *not* call wl_data_offer_receive() with
a NULL mime-type, as this causes libwayland to error out, which in
turn causes foot to exit.

Closes #1092
This commit is contained in:
Daniel Eklöf 2022-06-20 19:29:57 +02:00
parent bfc53d1e71
commit 2e4da6fbf6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 12 additions and 1 deletions

View file

@ -74,10 +74,15 @@
* Graphical corruption when viewport is at the top of the scrollback,
and the output is scrolling.
* Improved text reflow of logical lines with trailing empty cells ([#1055][1055])
* Improved text reflow of logical lines with trailing empty cells
([#1055][1055])
* IME focus is now tracked independently from keyboard focus.
* Workaround for buggy compositors (e.g. some versions of GNOME)
allowing drag-and-drops even though foot has reported it does not
support the offered mime-types ([#1092][1092]).
[1055]: https://codeberg.org/dnkl/foot/issues/1055
[1092]: https://codeberg.org/dnkl/foot/issues/1092
### Security