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 2941

Summary: [PATCH] Wayland: Hit Testing Move and Resize
Product: SDL Reporter: x414e54
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   
Attachments: Wayland Hit Test
Wayland Hit Test Update

Description x414e54 2015-04-11 23:50:29 UTC
I have implemented Hit Testing for Wayland. 

Currently using the wl_shell_surface but would also need to be implemented using the xdg_shell api when that settles down.
Comment 1 x414e54 2015-04-11 23:50:47 UTC
Created attachment 2119 [details]
Wayland Hit Test
Comment 2 x414e54 2015-04-12 00:48:27 UTC
Created attachment 2120 [details]
Wayland Hit Test Update

Updated patch for better error checking, leaving space for xdg_shell and other possible interfaces and line-breaking more consistently.
Comment 3 Ryan C. Gordon 2015-04-13 00:43:01 UTC
This patch is now https://hg.libsdl.org/SDL/rev/879f71e1478b, thanks!

--ryan.
Comment 4 Ryan C. Gordon 2015-04-13 01:00:51 UTC
(Just did a tiny bit of code compacting here, though, so be aware if you are doing more work in this area: https://hg.libsdl.org/SDL/rev/fff4b6354b99 )

--ryan.