| Summary: | implement client-side decorations (CSD) for Wayland | ||
|---|---|---|---|
| Product: | SDL | Reporter: | David Heidelberg (okias) <david> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus, Rauch.Christian |
| Version: | 2.0.13 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Bug Depends on: | |||
| Bug Blocks: | 3948 | ||
|
Description
David Heidelberg (okias)
2019-10-23 18:09:42 UTC
As I said before, we won’t get to this for 2.0.12, but let’s use this bug as a place to collect info in the meantime. As I see it, we don’t need world-class CSD, especially not to start with. At a minimum, we need a basic title bar with a close button, that lets you move the window by dragging, and maybe some means to resize the window (but this last point is often less crucial for SDL apps). Extra credit for a minimize and maximize button, but I don’t know what Wayland protocols look like for those that aren’t Gnome or KDE specific. If this is going to need magic specific to each desktop environment, we should avoid adding it. A close button (besides being the most useful decoration) can just be wired to an SDL event and not need any DE integration. Ideally, whatever we build is “good enough” and doesn’t become a massive reimplementation of a complete desktop environment. Building something users can take for granted is certainly going to be non-trivial. There is a proposal for a CSD library, that lets things like SDL just use GTK’s decorations without being “real” GTK apps, but that is just starting. Wayland server-side decorations are available as a protocol on KDE, and SDL already supports these. Between this and the future CSD library, SDL will have good integration, so we’re just looking for something very basic here. What about the proposed client-side decorations in https://bugzilla.libsdl.org/show_bug.cgi?id=5194 ? |