e35348dce0802a0ce505a90c0c3bdd6e54a215ed — Hugo Osvaldo Barrera 5 months ago 9caf34a
Add workaround for bug if Firefox's clipboard
1 files changed, 8 insertions(+), 0 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +8 -0
@@ 164,6 164,14 @@ fn handle_data_offer_events(
            // If the selection comes from alacritty it works.
            // If the selection comes from firefox it doesn't.

            // Mime types should have a slash. The only exception so far seems to be firefox, but,
            // when trying to read content from any of those offers, it never writes any bytes and
            // trying to copy/paste from Firefox again results in it crashing.
            // See https://bugzilla.mozilla.org/show_bug.cgi?id=1731511
            if !mime_type.contains("/") {

            let user_data = main