fixes after big api changes

This commit is contained in:
Peterino2 2026-09-19 13:55:05 -07:00
parent 2e2a810615
commit 091fcee4ed
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ var wake_fd: std.atomic.Value(c_int) = .init(-1);
pub fn backend(handle: ?*n.uhdk_session) u32 {
if (handle == null) return n.UHDK_BACKEND_AUTO;
const app = runtime.fromAppHandle(handle);
return if (app.has_run) n.UHDK_BACKEND_WAYLAND else n.UHDK_BACKEND_AUTO;
return if (app.native_started) n.UHDK_BACKEND_WAYLAND else n.UHDK_BACKEND_AUTO;
}
pub fn capability(handle: ?*n.uhdk_session, cap: u32) n.uhdk_bool {
if (handle == null) return 0;