From 1d43bb70d47f40651aa7f8c7a95f59ecd9918b24 Mon Sep 17 00:00:00 2001 From: Alec LeFors Date: Sat, 27 Aug 2022 17:24:36 -0400 Subject: [PATCH] fix indents, change crit log to info --- src/Compositor.cpp | 6 +++--- src/events/Misc.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index e70650d1f..3c7b8ccbe 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -147,10 +147,10 @@ CCompositor::CCompositor() { m_sWLRToplevelMgr = wlr_foreign_toplevel_manager_v1_create(m_sWLDisplay); m_sWRLDRMLeaseMgr = wlr_drm_lease_v1_manager_create(m_sWLDisplay, m_sWLRBackend); - if (!m_sWRLDRMLeaseMgr) { - Debug::log(CRIT, "Failed to create wlr_drm_lease_v1_manager"); + if (!m_sWRLDRMLeaseMgr) { + Debug::log(INFO, "Failed to create wlr_drm_lease_v1_manager"); Debug::log(INFO, "VR will not be available"); - } + } m_sWLRTabletManager = wlr_tablet_v2_create(m_sWLDisplay); diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp index 4e2f532c8..f952bec2d 100644 --- a/src/events/Misc.cpp +++ b/src/events/Misc.cpp @@ -27,11 +27,11 @@ void Events::listener_outputMgrTest(wl_listener* listener, void* data) { void Events::listener_leaseRequest(wl_listener* listener, void* data) { const auto REQUEST = (wlr_drm_lease_request_v1*)data; - struct wlr_drm_lease_v1* lease = wlr_drm_lease_request_v1_grant(REQUEST); - if (!lease) { + struct wlr_drm_lease_v1* lease = wlr_drm_lease_request_v1_grant(REQUEST); + if (!lease) { Debug::log(ERR, "Failed to grant lease request!"); - wlr_drm_lease_request_v1_reject(REQUEST); - } + wlr_drm_lease_request_v1_reject(REQUEST); + } } void Events::listener_requestSetPrimarySel(wl_listener* listener, void* data) {