fix, default to true, sway/workspaces: warp-on-scroll

This commit is contained in:
sigboe 2023-07-08 21:32:19 +02:00
parent e4900db9a2
commit d774de6c46

View File

@ -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;