core: add libinput backend support for headless session (#5699)

This commit is contained in:
PostCyberPunk 2024-04-23 01:48:18 +08:00 committed by GitHub
parent 012a2802e0
commit 855a516596
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);