Allow setting XDG application ID on wayland
Some checks are pending
CI / x86_64-linux (push) Waiting to run
CI / x86_64-windows (push) Waiting to run
CI / x86_64-macos (push) Waiting to run

This commit is contained in:
icefox 2026-01-10 16:32:30 -03:00
parent b31f471fb4
commit 0c360e6e23
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -24,6 +24,9 @@ windows: mach.Objects(
// TODO: allocation/free strategy
title: [:0]const u8 = "Mach Window",
// XDG application ID of the window
app_id: [:0]const u8 = "",
/// Texture format of the framebuffer (read-only)
framebuffer_format: gpu.Texture.Format = .bgra8_unorm,

View file

@ -177,6 +177,7 @@ pub fn initWindow(
wl = &core_window.native.?.wayland;
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
c.wl_surface_commit(wl.surface);