summaryrefslogtreecommitdiff
path: root/src/managers/input
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-07-13 12:36:29 +0200
committerVaxry <vaxry@vaxry.net>2024-07-13 12:36:35 +0200
commit13bc7e1e1415a0b17db609774f59b594c7633941 (patch)
treec4ea048fd9ad91c86ca73e313a5aca8b6b3a5ec3 /src/managers/input
parent7486576fa7a3d394254cb07734679df4b2469071 (diff)
style: fix clang-format
Diffstat (limited to 'src/managers/input')
-rw-r--r--src/managers/input/InputManager.cpp3
-rw-r--r--src/managers/input/TextInput.cpp9
2 files changed, 4 insertions, 8 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 9180e9cd..b2bbd577 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -1624,8 +1624,7 @@ void CInputManager::newSwitch(wlr_input_device* pDevice) {
Debug::log(LOG, "New switch with name \"{}\" added", pDevice->name);
- PNEWDEV->hyprListener_destroy.initCallback(
- &pDevice->events.destroy, [&](void* owner, void* data) { destroySwitch((SSwitchDevice*)owner); }, PNEWDEV, "SwitchDevice");
+ PNEWDEV->hyprListener_destroy.initCallback(&pDevice->events.destroy, [&](void* owner, void* data) { destroySwitch((SSwitchDevice*)owner); }, PNEWDEV, "SwitchDevice");
const auto PSWITCH = wlr_switch_from_input_device(pDevice);
diff --git a/src/managers/input/TextInput.cpp b/src/managers/input/TextInput.cpp
index 4c7ffe6e..635a8b01 100644
--- a/src/managers/input/TextInput.cpp
+++ b/src/managers/input/TextInput.cpp
@@ -41,14 +41,11 @@ void CTextInput::initCallbacks() {
g_pInputManager->m_sIMERelay.removeTextInput(this);
});
} else {
- hyprListener_textInputEnable.initCallback(
- &pV1Input->sEnable, [this](void* owner, void* data) { onEnabled(); }, this, "textInput");
+ hyprListener_textInputEnable.initCallback(&pV1Input->sEnable, [this](void* owner, void* data) { onEnabled(); }, this, "textInput");
- hyprListener_textInputCommit.initCallback(
- &pV1Input->sCommit, [this](void* owner, void* data) { onCommit(); }, this, "textInput");
+ hyprListener_textInputCommit.initCallback(&pV1Input->sCommit, [this](void* owner, void* data) { onCommit(); }, this, "textInput");
- hyprListener_textInputDisable.initCallback(
- &pV1Input->sDisable, [this](void* owner, void* data) { onDisabled(); }, this, "textInput");
+ hyprListener_textInputDisable.initCallback(&pV1Input->sDisable, [this](void* owner, void* data) { onDisabled(); }, this, "textInput");
hyprListener_textInputDestroy.initCallback(
&pV1Input->sDestroy,