mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
workspace: fix workspace name selector returning true early (#5571)
This commit is contained in:
parent
34396f55a2
commit
582d6233c8
@ -334,10 +334,10 @@ bool CWorkspace::matchesStaticSelector(const std::string& selector_) {
|
|||||||
|
|
||||||
prop = prop.substr(2, prop.length() - 3);
|
prop = prop.substr(2, prop.length() - 3);
|
||||||
|
|
||||||
if (prop.starts_with("s:"))
|
if (prop.starts_with("s:") && !m_szName.starts_with(prop.substr(2)))
|
||||||
return m_szName.starts_with(prop.substr(2));
|
return false;
|
||||||
if (prop.starts_with("e:"))
|
if (prop.starts_with("e:") && !m_szName.ends_with(prop.substr(2)))
|
||||||
return m_szName.ends_with(prop.substr(2));
|
return false;
|
||||||
|
|
||||||
const auto WANTSNAMED = configStringToInt(prop);
|
const auto WANTSNAMED = configStringToInt(prop);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user