summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorPhilipp Schilk <schilk.philipp@gmail.com>2024-03-21 16:18:24 +0100
committerGitHub <noreply@github.com>2024-03-21 15:18:24 +0000
commita94b902bef5eef3a4891726d51415c5d2e3391e3 (patch)
tree5162dc68e91c228d4142bbd3714eb77e3b548820 /src/Compositor.cpp
parent997ee82bdf3c5783dffb3b5a34bff60362422780 (diff)
windowrules: Fix resizeparams parsing. (#5206)
Parsing of resizeparams/relative vec2 did not correctly handle multiple spaces between x and y arguments, causing the following to fail to parse: bind = $mainMod CTRL, h, resizeactive, 10 0 This is unexpected, because most other config values are whitespace insensitive.
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 3ff67f20..f8138825 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -2542,7 +2542,7 @@ Vector2D CCompositor::parseWindowVectorArgsRelative(const std::string& args, con
bool isExact = false;
std::string x = args.substr(0, args.find_first_of(' '));
- std::string y = args.substr(args.find_first_of(' ') + 1);
+ std::string y = args.substr(args.find_last_of(' ') + 1);
if (x == "exact") {
x = y.substr(0, y.find_first_of(' '));