Skip to content

dnd: Send only events supported by client#2028

Open
mati865 wants to merge 1 commit intoSmithay:masterfrom
mati865:push-pvsysmxrnwnp
Open

dnd: Send only events supported by client#2028
mati865 wants to merge 1 commit intoSmithay:masterfrom
mati865:push-pvsysmxrnwnp

Conversation

@mati865
Copy link
Copy Markdown

@mati865 mati865 commented May 8, 2026

Description

Hi!

This PR addresses #2026 (shout out to bczhc for providing so much relevant info).

I have reproduced the issue in Anvil by DnD a file into GLFW window, and with these changes the crash is gone.

This feels out of place however, looking at the other protocols, some of them have nice abstractions with such check baked into:

if self.version() >= wl_data_source::EVT_DND_DROP_PERFORMED_SINCE {

Perhaps I should add simple abstraction that checks the version similarly?

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant