Skip to content

Commit

Permalink
linux/wayland: set title for xdg_toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
hch12907 committed Sep 20, 2023
1 parent 789d8d8 commit 76f1ce3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/native/linux_wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,15 @@ where
&mut display as *mut _ as _,
);

let title = std::ffi::CString::new(conf.window_title.as_str()).unwrap();

wl_request!(
display.client,
display.xdg_toplevel,
extensions::xdg_shell::xdg_toplevel::set_title,
title.as_ptr()
);

wl_request!(display.client, display.surface, WL_SURFACE_COMMIT);
(display.client.wl_display_roundtrip)(wdisplay);

Expand Down

0 comments on commit 76f1ce3

Please sign in to comment.