summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-01-28 12:26:33 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-01-28 12:26:38 +0000
commit61c9e50bcd6c51e026203f194bc186eda3c44a38 (patch)
treeb9b7c012e2799fa80f4fc091946cee3daefb08cc /src/Compositor.cpp
parentaf37a3895f810ebe3cc58600b0d9b2fcf449b2d1 (diff)
warp cursor on login to center
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index ca62843e..9269dff0 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -2021,14 +2021,14 @@ CWindow* CCompositor::getWindowByRegex(const std::string& regexp) {
return nullptr;
}
-void CCompositor::warpCursorTo(const Vector2D& pos) {
+void CCompositor::warpCursorTo(const Vector2D& pos, bool force) {
// warpCursorTo should only be used for warps that
// should be disabled with no_cursor_warps
static auto* const PNOWARPS = &g_pConfigManager->getConfigValuePtr("general:no_cursor_warps")->intValue;
- if (*PNOWARPS)
+ if (*PNOWARPS && !force)
return;
wlr_cursor_warp(m_sWLRCursor, m_sSeat.mouse->mouse, pos.x, pos.y);