From d774de6c46221530ba8060b92f544a3f6c2d88a4 Mon Sep 17 00:00:00 2001 From: sigboe Date: Sat, 8 Jul 2023 21:32:19 +0200 Subject: [PATCH] fix, default to true, sway/workspaces: warp-on-scroll --- src/modules/sway/workspaces.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sway/workspaces.cpp b/src/modules/sway/workspaces.cpp index 638ed9d9..90efe7a1 100644 --- a/src/modules/sway/workspaces.cpp +++ b/src/modules/sway/workspaces.cpp @@ -327,7 +327,7 @@ bool Workspaces::handleScroll(GdkEventScroll *e) { return true; } } - if (!config_["warp-on-scroll"].asBool()) { + if (!config_["warp-on-scroll"].isNull() && !config_["warp-on-scroll"].asBool()) { ipc_.sendCmd(IPC_COMMAND, fmt::format("mouse_warping none")); } try { @@ -335,7 +335,7 @@ bool Workspaces::handleScroll(GdkEventScroll *e) { } catch (const std::exception &e) { spdlog::error("Workspaces: {}", e.what()); } - if (!config_["warp-on-scroll"].asBool()) { + if (!config_["warp-on-scroll"].isNull() && !config_["warp-on-scroll"].asBool()) { ipc_.sendCmd(IPC_COMMAND, fmt::format("mouse_warping container")); } return true;