rust-windowing/glutin

Title not visible running example on Gnome 41/42/Wayland

satmandu opened this issue · 6 comments

This is what I see running cargo run --example window from glutin's head on Ubuntu 22.04 (Mutter ~ 42/Wayland).

screenshot-crop

As per

let wb = WindowBuilder::new().with_title("A fantastic window!");

it would seem that there should be a title, but instead, it is washed out on a white title bar.

Is there a way to get the title to show up?

I think this is referenced in both alacritty/alacritty#4739 and rust-windowing/winit#1312 . Is this a Gnome issue? Do I need to open an issue on the mutter gitlab issues board?

Here is the tail of WAYLAND_DEBUG=1 cargo run --example window &> wayland_title_debug.txt
wayland_title_debug.txt

It is indeed a Gnome issue. Gnome doesn't support server-side decorations, and sctk (and by extension winit) has dropped support for text in the fallback client-side decorations.

See Smithay/client-toolkit#196 for one proposed solution

Thanks for that info. looks like https://github.com/cmeissl/libdecor-rs is able to do the titling! Any chance of getting that functionality here?

screenshot-libdecor-rs-crop

What is the status on this? the problem occurs in Ubuntu 22.04 LTS

As I understand it, progress has stalled because integrating libdecor upstream is proving difficult. I don't recall where I read this, however.

Winit bug wrt title got fixed.