From 9f28b37e2c9b67f1c69a38d34a7422edcba8f0fb Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 3 Jul 2024 22:31:51 +0200 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=89=E3=82=B9=E3=82=BF?= =?UTF-8?q?=E3=82=A4=E3=83=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/devices/Keyboard.cpp | 2 +- src/devices/Tablet.cpp | 2 +- src/helpers/Monitor.cpp | 12 ++++++------ src/managers/eventLoop/EventLoopManager.hpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/devices/Keyboard.cpp b/src/devices/Keyboard.cpp index f77829a7..ae28c07d 100644 --- a/src/devices/Keyboard.cpp +++ b/src/devices/Keyboard.cpp @@ -30,7 +30,7 @@ CKeyboard::CKeyboard(SP keeb) : keyboard(keeb) { }); listeners.key = keeb->events.key.registerListener([this](std::any d) { - auto E = std::any_cast(d); + auto E = std::any_cast(d); updateXkbStateWithKey(E.key + 8, E.pressed); diff --git a/src/devices/Tablet.cpp b/src/devices/Tablet.cpp index a1f642df..71ca8991 100644 --- a/src/devices/Tablet.cpp +++ b/src/devices/Tablet.cpp @@ -224,7 +224,7 @@ CTabletTool::CTabletTool(SP tool_) : tool(tool_) { if (!tool) return; - listeners.destroyTool = tool->events.destroy.registerListener([this] (std::any d) { + listeners.destroyTool = tool->events.destroy.registerListener([this](std::any d) { tool.reset(); events.destroy.emit(); }); diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index ad5b0199..196f44df 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -791,14 +791,14 @@ bool CMonitorState::test() { } bool CMonitorState::updateSwapchain() { - auto options = m_pOwner->output->swapchain->currentOptions(); - const auto& STATE = m_pOwner->output->state->state(); - const auto& MODE = STATE.mode ? STATE.mode : STATE.customMode; + auto options = m_pOwner->output->swapchain->currentOptions(); + const auto& STATE = m_pOwner->output->state->state(); + const auto& MODE = STATE.mode ? STATE.mode : STATE.customMode; if (!MODE) return true; - options.format = STATE.drmFormat; + options.format = STATE.drmFormat; options.scanout = true; - options.length = 2; - options.size = MODE->pixelSize; + options.length = 2; + options.size = MODE->pixelSize; return m_pOwner->output->swapchain->reconfigure(options); } diff --git a/src/managers/eventLoop/EventLoopManager.hpp b/src/managers/eventLoop/EventLoopManager.hpp index d5b640a3..eff281d6 100644 --- a/src/managers/eventLoop/EventLoopManager.hpp +++ b/src/managers/eventLoop/EventLoopManager.hpp @@ -8,7 +8,7 @@ #include "EventLoopTimer.hpp" namespace Aquamarine { - struct SPollFD; + struct SPollFD; }; class CEventLoopManager {