Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927185

Summary: media-libs/libsdl2: wire up libdecor support
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 927186    
Bug Blocks:    

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-17 09:01:59 UTC
I keep meaning to do this and forgetting... maybe a bug will help.

https://github.com/libsdl-org/SDL/blob/main/docs/README-wayland.md#window-decorations-are-missing-or-the-decorations-look-strange

>On some desktops (i.e. GNOME), Wayland applications use a library called libdecor to provide window decorations. If this library is not installed, the decorations will be missing. This library uses plugins to generate different decoration styles, and if a plugin to generate native-looking decorations is not installed (i.e. the GTK plugin), the decorations will not appear to be 'native'.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-14 01:07:33 UTC
We can do this now libdecor is in tree.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-01 04:35:49 UTC
It's automagic right now, actually. Ugh.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-01 04:38:42 UTC
dep_option(SDL_WAYLAND_LIBDECOR    "Use client-side window decorations on Wayland" ON "SDL_WAYLAND" OFF)
dep_option(SDL_WAYLAND_LIBDECOR_SHARED     "Dynamically load libdecor support" ON "SDL_WAYLAND_LIBDECOR;SDL_WAYLAND_SHARED" OFF)
Comment 4 Larry the Git Cow gentoo-dev 2024-05-01 06:03:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b5e09a485a7c7f756af30aae248aeed5082a877

commit 1b5e09a485a7c7f756af30aae248aeed5082a877
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-01 06:02:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-01 06:02:27 +0000

    media-libs/libsdl2: wire up libdecor support
    
    Enable it with USE=wayland given upstream strongly recommend it
    in their FAQ: https://github.com/libsdl-org/SDL/blob/main/docs/README-wayland.md#window-decorations-are-missing-or-the-decorations-look-strange.
    
    (They've used stronger words on e.g. Twitter too.)
    
    Closes: https://bugs.gentoo.org/927185
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/libsdl2/libsdl2-2.30.2-r2.ebuild | 208 ++++++++++++++++++++++++++++
 1 file changed, 208 insertions(+)