mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-22 17:59:47 +01:00
screencopy: fix unescaped quotes in titles (#96)
This commit is contained in:
parent
2f48e65503
commit
b645ab7cce
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
|||
|
||||
std::string sanitizeNameForWindowList(const std::string& name) {
|
||||
std::string result = name;
|
||||
if (result[0] == '\"')
|
||||
result[0] = ' ';
|
||||
for (size_t i = 1; i < result.size(); ++i) {
|
||||
if (result[i - 1] == '>' && result[i] == ']')
|
||||
result[i] = ' ';
|
||||
|
|
Loading…
Reference in a new issue