Compare commits
2 commits
bf291b79cb
...
0c360e6e23
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c360e6e23 | ||
|
|
b31f471fb4 |
2 changed files with 6 additions and 2 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
|
|
@ -176,6 +176,9 @@ pub fn initWindow(
|
|||
core_window = core.windows.getValue(window_id);
|
||||
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);
|
||||
|
||||
|
|
@ -188,8 +191,6 @@ pub fn initWindow(
|
|||
if (result != -1 and wl.configured) break;
|
||||
}
|
||||
|
||||
c.xdg_toplevel_set_title(wl.toplevel, @ptrCast(core_window.title));
|
||||
|
||||
const decoration = c.zxdg_decoration_manager_v1_get_toplevel_decoration(
|
||||
wl.interfaces.zxdg_decoration_manager_v1,
|
||||
wl.toplevel,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue