Toolkit Window Decorations
Thiago Milczarek Sayão
thiago.sayao at gmail.com
Thu May 23 11:16:04 UTC 2024
Hi,
At some point we will need "Client Side" decorations on JavaFX to support
modern gnome desktop on Linux as they moved to have client side decorations
on everything.
Mutter (the gnome compositor) does not even support "server side"
decorations. On Wayland it's an extension for KDE only.
Currently, even on Xorg it's a bit hacky when JavaFX needs to set total
window size (with decorations). It caused too many problems.
Having controls on the titlebar is a nice feature to have, as seen on many
applications (tabs, hamburger menus, buttons).
I'm not exactly sure on how it should be done. Maybe a Scene property that
enables its contents to be wrapped in a decoration control?
Would it break applications that walk through the scene graph?
Should it look like Modena and have a JavaFX "identity", or should it try
to look like the platform it's in?
On Wayland, it would be possible to use a subcompositor to place the
decoration behind, but I think it would be better if the decoration was
part of the Scene. It would be less problematic on the variety of
compositors (Mutter, Kwin, Sway, etc).
-- Thiago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240523/ef8b007e/attachment.htm>
More information about the openjfx-dev
mailing list