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 - Add decorations on the Wayland backend
Summary: Add decorations on the Wayland backend
Status: RESOLVED DUPLICATE of bug 2710
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-01 07:55 UTC by bugs
Modified: 2018-04-21 19:49 UTC (History)
1 user (show)

See Also:


Attachments

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