mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-26 21:28:28 +00:00
fix getTitle crash
This commit is contained in:
@@ -78,11 +78,8 @@ std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) {
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
} catch (std::exception& e) {
|
||||
if (e.what())
|
||||
Debug::log(ERR, "Error in getTitle: %s", e.what());
|
||||
else
|
||||
Debug::log(ERR, "Error in getTitle [e.what() nullptr]");
|
||||
} catch (...) {
|
||||
Debug::log(ERR, "Error in getTitle (probably null title)");
|
||||
}
|
||||
|
||||
return "";
|
||||
|
Reference in New Issue
Block a user