Client-side decorations and libdecor

Philip Race philip.race at oracle.com
Wed Apr 16 17:52:12 UTC 2025



On 4/16/25 8:11 AM, Maxim Kartashev wrote:
> Hi, All!
>
> I am currently looking at a way to achieve a "native" look for 
> Wakefield's windows.
>
> There's GTK Look-and-feel for Java and X11 that leverages GTK API for 
> painting various widgets and parts thereof, but that doesn't extend to 
> the top-level window decorations.

Swing GTK L&F uses the theming engine including for the decoration of 
internal frames

So I'd expect we could use that for the top-level decoration too.

> Besides, it does not solve the problem for KDE and others.

We only support Gnome. We do try (somewhat) to have things work on other 
desktops
but only if the cost is not too high and this sounds like it might be.

-phil.

>
> Then there's libdecor, which demo looks promising, so I wanted to ask 
> a few questions about it before I commit to using the library:
> 1. How stable/feature-complete is version 0.1.0, included with the 
> older Ubuntu 22.04 LTS?
> 2. libdecor is licensed under MIT; would it be theoretically possible 
> to include it into the OpenJDK source tree?
> 3. Does libdecor work with Vulkan surfaces? If not, are there plans to 
> support Vulkan?
>
> There are demos and comments in the code, but I can't seem to find a 
> dedicated documentation for libdecor. Is there any at this point?
>
> Thanks,
>
> Maxim.



More information about the wakefield-dev mailing list