Skip to content

Commit b19c01a

Browse files
committed
fix getX11Window
1 parent fa12b57 commit b19c01a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/zglfw.zig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,12 @@ fn _getX11Display() callconv(.c) ?*anyopaque {
11731173
return null;
11741174
}
11751175

1176-
pub const getX11Window = if (_isLinuxDesktopLike() and options.enable_x11) glfwGetX11Window else _getX11Window;
1176+
pub fn getX11Window(window: *Window) u32 {
1177+
if (comptime _isLinuxDesktopLike() and options.enable_x11) {
1178+
return glfwGetX11Window(window);
1179+
}
1180+
return _getX11Window(window);
1181+
}
11771182
extern fn glfwGetX11Window(window: *Window) u32;
11781183
fn _getX11Window(_: *Window) u32 {
11791184
return 0;

0 commit comments

Comments
 (0)