Merge pull request #2293 from sigboe/master

pull/2296/head
Alexis Rouillard 2023-07-08 21:47:04 +02:00 committed by GitHub
commit 3bfeed31bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ bool Workspaces::handleScroll(GdkEventScroll *e) {
return true; 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")); ipc_.sendCmd(IPC_COMMAND, fmt::format("mouse_warping none"));
} }
try { try {
@ -335,7 +335,7 @@ bool Workspaces::handleScroll(GdkEventScroll *e) {
} catch (const std::exception &e) { } catch (const std::exception &e) {
spdlog::error("Workspaces: {}", e.what()); 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")); ipc_.sendCmd(IPC_COMMAND, fmt::format("mouse_warping container"));
} }
return true; return true;