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 - [PATCH] Support wayland compositors with wl_seat version < 5
Summary: [PATCH] Support wayland compositors with wl_seat version < 5
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 NetBSD
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.14
Depends on:
Blocks:
 
Reported: 2020-04-05 15:52 UTC by Nia Alarie
Modified: 2020-04-07 18:27 UTC (History)
0 users

See Also:


Attachments
Patch to correct the fallback for lower wl_seat verisons + fix the build on non-Linux (2.84 KB, patch)
2020-04-05 15:52 UTC, Nia Alarie
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.