Skip to content
Snippets Groups Projects
Commit 4262fb18 authored by Ian Douglas Scott's avatar Ian Douglas Scott Committed by Olivier Fourdan
Browse files

xwayland: Release keys on keyboard `enter` event if `leave` wasn't received

The code here assumed a `leave` event always occurs between two `enter`
events. On Sway (and presumably other compositors) this happens even if
the client has destroyed the `wl_surface`, but the client gets a null
`surface` here. (Which presumably on on the wire is the id of the
destroyed surface.)

This seems like a bad thing to rely on, and is easy to avoid. But if
this is correct to assume, the Wayland protocol should be explicit about
this.

(cherry picked from commit 386b54fb)

Part-of: <!1635>
parent 54a591b9
No related branches found
No related tags found
1 merge request!1635[Xwayland 24.1] Backport fixes
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment