fixes after big api changes
This commit is contained in:
parent
2e2a810615
commit
091fcee4ed
|
|
@ -86,7 +86,7 @@ var wake_fd: std.atomic.Value(c_int) = .init(-1);
|
||||||
pub fn backend(handle: ?*n.uhdk_session) u32 {
|
pub fn backend(handle: ?*n.uhdk_session) u32 {
|
||||||
if (handle == null) return n.UHDK_BACKEND_AUTO;
|
if (handle == null) return n.UHDK_BACKEND_AUTO;
|
||||||
const app = runtime.fromAppHandle(handle);
|
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 {
|
pub fn capability(handle: ?*n.uhdk_session, cap: u32) n.uhdk_bool {
|
||||||
if (handle == null) return 0;
|
if (handle == null) return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue