From c0f63a96e4224dabb54c3a2502dcb59ad8e28e6e Mon Sep 17 00:00:00 2001 From: WhySoBad <49595640+WhySoBad@users.noreply.github.com> Date: Wed, 15 May 2024 10:47:49 +0200 Subject: [PATCH] fix: use title and app class id from window --- src/sticky_apps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sticky_apps.cpp b/src/sticky_apps.cpp index 339ac62..8b5a492 100644 --- a/src/sticky_apps.cpp +++ b/src/sticky_apps.cpp @@ -65,11 +65,11 @@ int StickyApps::matchRuleOnWindow(const std::vector& rules, std::un const std::string StickyApps::extractProperty(const SStickyRule& rule, PHLWINDOW window) { if (rule.property == TITLE) { - return g_pXWaylandManager->getTitle(window); + return window->m_szTitle; } else if (rule.property == INITIAL_TITLE) { return window->m_szInitialTitle; } else if (rule.property == CLASS) { - return g_pXWaylandManager->getAppIDClass(window); + return window->m_szClass; } else if (rule.property == INITIAL_CLASS) { return window->m_szInitialClass; }