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 4122

Summary: Add decorations on the Wayland backend
Product: SDL Reporter: bugs
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: plusfabi
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   

Description bugs 2018-04-01 07:55:46 UTC
Most users are lost when they don’t have a title bar to drag a window around, and Wayland requires clients to draw these themselves.

Don’t aim at integrating with the environment, it can’t be achieved that way.

Here is how I implemented it in GLFW, using one 1×1 buffer and four subsurfaces and handling the events in the library: https://github.com/glfw/glfw/pull/1161

There is also a proposal for an xdg-toplevel-decoration protocol, allowing clients to let the compositor draw it for them if it advertises support, but the generic client-side method must still be supported: https://patchwork.freedesktop.org/patch/212690/
Comment 1 Fabian 2018-04-21 19:45:01 UTC
duplicate of https://bugzilla.libsdl.org/show_bug.cgi?id=2710 ?
Comment 2 bugs 2018-04-21 19:49:35 UTC
Indeed.

*** This bug has been marked as a duplicate of bug 2710 ***