mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 07:45:59 +01:00
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.
This commit is contained in:
parent
997ee82bdf
commit
a94b902bef
1 changed files with 1 additions and 1 deletions
|
@ -2542,7 +2542,7 @@ Vector2D CCompositor::parseWindowVectorArgsRelative(const std::string& args, con
|
||||||
bool isExact = false;
|
bool isExact = false;
|
||||||
|
|
||||||
std::string x = args.substr(0, args.find_first_of(' '));
|
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") {
|
if (x == "exact") {
|
||||||
x = y.substr(0, y.find_first_of(' '));
|
x = y.substr(0, y.find_first_of(' '));
|
||||||
|
|
Loading…
Reference in a new issue