mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 15:05:59 +01:00
fix crash with libc++ in appid
This commit is contained in:
parent
494103b521
commit
fd3a1cd086
1 changed files with 2 additions and 2 deletions
|
@ -110,14 +110,14 @@ std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) {
|
||||||
std::string CHyprXWaylandManager::getAppIDClass(CWindow* pWindow) {
|
std::string CHyprXWaylandManager::getAppIDClass(CWindow* pWindow) {
|
||||||
try {
|
try {
|
||||||
if (pWindow->m_bIsX11) {
|
if (pWindow->m_bIsX11) {
|
||||||
if (pWindow->m_uSurface.xwayland) {
|
if (pWindow->m_uSurface.xwayland && pWindow->m_uSurface.xwayland->_class) {
|
||||||
if (!pWindow->m_bMappedX11 || !pWindow->m_bIsMapped)
|
if (!pWindow->m_bMappedX11 || !pWindow->m_bIsMapped)
|
||||||
return "unmanaged X11";
|
return "unmanaged X11";
|
||||||
|
|
||||||
return std::string(pWindow->m_uSurface.xwayland->_class);
|
return std::string(pWindow->m_uSurface.xwayland->_class);
|
||||||
}
|
}
|
||||||
} else if (pWindow->m_uSurface.xdg) {
|
} else if (pWindow->m_uSurface.xdg) {
|
||||||
if (pWindow->m_uSurface.xdg->toplevel) {
|
if (pWindow->m_uSurface.xdg->toplevel && pWindow->m_uSurface.xdg->toplevel->app_id) {
|
||||||
return std::string(pWindow->m_uSurface.xdg->toplevel->app_id);
|
return std::string(pWindow->m_uSurface.xdg->toplevel->app_id);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue