Skip to content

Commit

Permalink
windowrules: Fix resizeparams parsing. (#5206)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
schilkp authored Mar 21, 2024
1 parent 997ee82 commit a94b902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(' '));
Expand Down

0 comments on commit a94b902

Please sign in to comment.