(TitleBar) There are no window decorations on Wayland
Author: martenioCreated Sep 10, 2026Updated Sep 10, 2026
No window decorations are rendered on GNOME (Wayland), there is no close, minimize etc buttons. It also doesn't render using a TitleBar.
Code:
use gpui_kit::component::*;
use gpui_kit::*;
pub struct HelloWorld;
impl Render for HelloWorld {
fn render(&mut self, _: &mut Window, _: &mut Context<Self>) -> impl IntoElement {
TitleBar::new()
.child(div().child("My Application"))
}
}
fn main() {
gpui_kit::application().run(move |cx| {
gpui_kit::init(cx);
cx.spawn(async move |cx| {
cx.open_window(WindowOptions::default(), |window, cx| {
let view = cx.new(|_| HelloWorld);
cx.new(|cx| Root::new(view, window, cx))
})
.expect("Failed to open window");
})
.detach();
});
}References https://github.com/wolfpld/tracy/issues/505#issuecomment-1365429443
Source: longbridge/gpui-component