We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5074

Summary: [PATCH] Support wayland compositors with wl_seat version < 5
Product: SDL Reporter: Nia Alarie <nia>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-2.0.14
Version: HG 2.0   
Hardware: x86_64   
OS: NetBSD   
Attachments: Patch to correct the fallback for lower wl_seat verisons + fix the build on non-Linux

Description Nia Alarie 2020-04-05 15:52:27 UTC
Created attachment 4290 [details]
Patch to correct the fallback for lower wl_seat verisons + fix the build on non-Linux

The current code causes a protocol error when the compositor reports a wl_seat version less than 5.

This patch also makes <linux/input.h> optional for wayland support, which I needed to build this code on my test platform (wayland via swc on NetBSD).
Comment 1 Sam Lantinga 2020-04-05 16:00:10 UTC
Ryan, can you look at this?
Comment 2 Ryan C. Gordon 2020-04-07 18:27:24 UTC
This patch is now https://hg.libsdl.org/SDL/rev/3cc182fa6110, thanks!

--ryan.