mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-24 00:45:57 +01:00
コードスタイル
This commit is contained in:
parent
95c17b2063
commit
73a017a94c
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) {
|
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);
|
updateXkbStateWithKey(E.key + 8, E.pressed);
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,7 @@ CTabletTool::CTabletTool(SP<Aquamarine::ITabletTool> tool_) : tool(tool_) {
|
||||||
if (!tool)
|
if (!tool)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
listeners.destroyTool = tool->events.destroy.registerListener([this] (std::any d) {
|
listeners.destroyTool = tool->events.destroy.registerListener([this](std::any d) {
|
||||||
tool.reset();
|
tool.reset();
|
||||||
events.destroy.emit();
|
events.destroy.emit();
|
||||||
});
|
});
|
||||||
|
|
|
@ -788,14 +788,14 @@ bool CMonitorState::test() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CMonitorState::updateSwapchain() {
|
bool CMonitorState::updateSwapchain() {
|
||||||
auto options = m_pOwner->output->swapchain->currentOptions();
|
auto options = m_pOwner->output->swapchain->currentOptions();
|
||||||
const auto& STATE = m_pOwner->output->state->state();
|
const auto& STATE = m_pOwner->output->state->state();
|
||||||
const auto& MODE = STATE.mode ? STATE.mode : STATE.customMode;
|
const auto& MODE = STATE.mode ? STATE.mode : STATE.customMode;
|
||||||
if (!MODE)
|
if (!MODE)
|
||||||
return true;
|
return true;
|
||||||
options.format = STATE.drmFormat;
|
options.format = STATE.drmFormat;
|
||||||
options.scanout = true;
|
options.scanout = true;
|
||||||
options.length = 2;
|
options.length = 2;
|
||||||
options.size = MODE->pixelSize;
|
options.size = MODE->pixelSize;
|
||||||
return m_pOwner->output->swapchain->reconfigure(options);
|
return m_pOwner->output->swapchain->reconfigure(options);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include "EventLoopTimer.hpp"
|
#include "EventLoopTimer.hpp"
|
||||||
|
|
||||||
namespace Aquamarine {
|
namespace Aquamarine {
|
||||||
struct SPollFD;
|
struct SPollFD;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CEventLoopManager {
|
class CEventLoopManager {
|
||||||
|
|
Loading…
Reference in a new issue