Allow setting XDG application ID on wayland
This commit is contained in:
parent
b31f471fb4
commit
0c360e6e23
2 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ windows: mach.Objects(
|
||||||
// TODO: allocation/free strategy
|
// TODO: allocation/free strategy
|
||||||
title: [:0]const u8 = "Mach Window",
|
title: [:0]const u8 = "Mach Window",
|
||||||
|
|
||||||
|
// XDG application ID of the window
|
||||||
|
app_id: [:0]const u8 = "",
|
||||||
|
|
||||||
/// Texture format of the framebuffer (read-only)
|
/// Texture format of the framebuffer (read-only)
|
||||||
framebuffer_format: gpu.Texture.Format = .bgra8_unorm,
|
framebuffer_format: gpu.Texture.Format = .bgra8_unorm,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,7 @@ pub fn initWindow(
|
||||||
wl = &core_window.native.?.wayland;
|
wl = &core_window.native.?.wayland;
|
||||||
|
|
||||||
c.xdg_toplevel_set_title(wl.toplevel, @ptrCast(core_window.title));
|
c.xdg_toplevel_set_title(wl.toplevel, @ptrCast(core_window.title));
|
||||||
|
c.xdg_toplevel_set_app_id(wl.toplevel, @ptrCast(core_window.app_id));
|
||||||
|
|
||||||
// Commit changes to surface
|
// Commit changes to surface
|
||||||
c.wl_surface_commit(wl.surface);
|
c.wl_surface_commit(wl.surface);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue