Feat: add initial class/title to hyprctl clients

This commit is contained in:
vaxerski
2023-04-03 19:16:51 +01:00
parent 0a099ca2ab
commit a43b18ae26
3 changed files with 25 additions and 17 deletions

View File

@@ -117,6 +117,9 @@ void Events::listener_mapWindow(void* owner, void* data) {
bool shouldFocus = true;
bool workspaceSpecial = false;
PWINDOW->m_szInitialTitle = g_pXWaylandManager->getTitle(PWINDOW);
PWINDOW->m_szInitialClass = g_pXWaylandManager->getAppIDClass(PWINDOW);
for (auto& r : WINDOWRULES) {
if (r.szRule.find("monitor") == 0) {
try {