From 855a516596fa8a15aea7cf4b4068aba0293a9615 Mon Sep 17 00:00:00 2001 From: PostCyberPunk <134976996+PostCyberPunk@users.noreply.github.com> Date: Tue, 23 Apr 2024 01:48:18 +0800 Subject: [PATCH] core: add libinput backend support for headless session (#5699) --- src/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index aafb4fcb..a6c97bf7 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -134,7 +134,7 @@ void CCompositor::initServer() { wlr_multi_for_each_backend( m_sWLRBackend, [](wlr_backend* backend, void* isHeadlessOnly) { - if (!wlr_backend_is_headless(backend)) + if (!wlr_backend_is_headless(backend) && !wlr_backend_is_libinput(backend)) *(bool*)isHeadlessOnly = false; }, &isHeadlessOnly);