From 9aa119e6765568103f5a41b401b305dff509e13a Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Tue, 17 Oct 2023 10:33:24 +0200 Subject: Allow disabling uhid interop from the commandline --- capture_wlr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'capture_wlr.c') diff --git a/capture_wlr.c b/capture_wlr.c index 0bd8f17..f8c7381 100644 --- a/capture_wlr.c +++ b/capture_wlr.c @@ -79,8 +79,7 @@ static void OnWlRegistryGlobalRemove(void* data, struct wl_registry* registry, } static bool InitWaylandGlobals(struct CaptureContextWlr* capture_context) { - capture_context->wl_display = - wl_display_connect(/*NULL*/ "/run/user/1000/wayland-1"); + capture_context->wl_display = wl_display_connect(NULL); if (!capture_context->wl_display) { LOG("Failed to connect wl_display (%s)", strerror(errno)); return false; -- cgit v1.2.3