diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-09-25 19:32:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-25 19:32:24 +0100 |
| commit | f70b57f360f8117ecca67d6d7f75c1f87b098794 (patch) | |
| tree | 77126f8d49917fc0bcd44af7859e88fb88d7bfaa /src/managers/input/InputMethodRelay.cpp | |
| parent | 190229942f60ea5b8905a673ddea44c05da14de3 (diff) | |
| parent | bf3f519eb76bfa8d5f7d71f882b7b803c699aee1 (diff) | |
Merge pull request #732 from Dickby/main
Remove trailing whitespace.
Diffstat (limited to 'src/managers/input/InputMethodRelay.cpp')
| -rw-r--r-- | src/managers/input/InputMethodRelay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/managers/input/InputMethodRelay.cpp b/src/managers/input/InputMethodRelay.cpp index f9582f54..25d8dfb9 100644 --- a/src/managers/input/InputMethodRelay.cpp +++ b/src/managers/input/InputMethodRelay.cpp @@ -97,7 +97,7 @@ void CInputMethodRelay::onNewIME(wlr_input_method_v2* pIME) { }, this, "IMERelay"); hyprListener_IMENewPopup.initCallback(&m_pWLRIME->events.new_popup_surface, [&](void* owner, void* data) { - + const auto PNEWPOPUP = &m_lIMEPopups.emplace_back(); PNEWPOPUP->pSurface = (wlr_input_popup_surface_v2*)data; @@ -120,7 +120,7 @@ void CInputMethodRelay::onNewIME(wlr_input_method_v2* pIME) { } void CInputMethodRelay::updateInputPopup(SIMEPopup* pPopup) { - if (!pPopup->pSurface->mapped) + if (!pPopup->pSurface->mapped) return; // damage last known pos & size @@ -404,7 +404,7 @@ void CInputMethodRelay::onKeyboardFocus(wlr_surface* pSurface) { for (auto& ti : m_lTextInputs) { if (ti.pPendingSurface) { - if (pSurface != ti.pPendingSurface) + if (pSurface != ti.pPendingSurface) setPendingSurface(&ti, nullptr); } else if (ti.pWlrInput->focused_surface) { @@ -446,4 +446,4 @@ void CInputMethodRelay::setPendingSurface(STextInput* pInput, wlr_surface* pSurf } else { pInput->hyprListener_pendingSurfaceDestroy.removeCallback(); } -}
\ No newline at end of file +} |
