mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-10 17:51:53 -07:00
fix device closing
This commit is contained in:
@@ -938,7 +938,7 @@ void CConfigManager::parseLine(std::string& line) {
|
|||||||
|
|
||||||
const auto LASTSEP = currentCategory.find_last_of(':');
|
const auto LASTSEP = currentCategory.find_last_of(':');
|
||||||
|
|
||||||
if (LASTSEP == std::string::npos)
|
if (LASTSEP == std::string::npos || currentCategory.contains("device:"))
|
||||||
currentCategory = "";
|
currentCategory = "";
|
||||||
else
|
else
|
||||||
currentCategory = currentCategory.substr(0, LASTSEP);
|
currentCategory = currentCategory.substr(0, LASTSEP);
|
||||||
|
Reference in New Issue
Block a user