mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 23:51:55 -07:00
guard windows' validity in focuswindowbyclass
This commit is contained in:
@@ -999,6 +999,9 @@ void CKeybindManager::focusWindowByClass(std::string clazz) {
|
|||||||
std::regex classCheck(clazz);
|
std::regex classCheck(clazz);
|
||||||
|
|
||||||
for (auto& w : g_pCompositor->m_lWindows) {
|
for (auto& w : g_pCompositor->m_lWindows) {
|
||||||
|
if (!w.m_bIsMapped || w.m_bHidden)
|
||||||
|
continue;
|
||||||
|
|
||||||
const auto windowClass = g_pXWaylandManager->getAppIDClass(&w);
|
const auto windowClass = g_pXWaylandManager->getAppIDClass(&w);
|
||||||
|
|
||||||
if (!std::regex_search(windowClass, classCheck))
|
if (!std::regex_search(windowClass, classCheck))
|
||||||
|
Reference in New Issue
Block a user