Skip to content

Commit

Permalink
Fix sticky apps extract property (#45)
Browse files Browse the repository at this point in the history
Fix sticky apps extract property
  • Loading branch information
levnikmyskin authored May 15, 2024
2 parents 6bbcc08 + c0f63a9 commit 37af21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sticky_apps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ int StickyApps::matchRuleOnWindow(const std::vector<SStickyRule>& 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;
}
Expand Down

0 comments on commit 37af21d

Please sign in to comment.