mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-13 09:25:59 +01:00
コードスタイル
This commit is contained in:
parent
8a21583a8e
commit
9f28b37e2c
4 changed files with 9 additions and 9 deletions
|
@ -30,7 +30,7 @@ CKeyboard::CKeyboard(SP<Aquamarine::IKeyboard> keeb) : keyboard(keeb) {
|
|||
});
|
||||
|
||||
listeners.key = keeb->events.key.registerListener([this](std::any d) {
|
||||
auto E = std::any_cast<Aquamarine::IKeyboard::SKeyEvent>(d);
|
||||
auto E = std::any_cast<Aquamarine::IKeyboard::SKeyEvent>(d);
|
||||
|
||||
updateXkbStateWithKey(E.key + 8, E.pressed);
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ CTabletTool::CTabletTool(SP<Aquamarine::ITabletTool> 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();
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "EventLoopTimer.hpp"
|
||||
|
||||
namespace Aquamarine {
|
||||
struct SPollFD;
|
||||
struct SPollFD;
|
||||
};
|
||||
|
||||
class CEventLoopManager {
|
||||
|
|
Loading…
Reference in a new issue