deine mum

This commit is contained in:
2025-12-30 21:55:11 +01:00
parent 9b5db719cb
commit 2d5b492da8
7 changed files with 55 additions and 20 deletions

View File

@@ -258,10 +258,10 @@ void HyprlandService::onUrgentEvent(std::string windowAddress) {
auto it = this->workspaces.find(workspaceId);
if (it != this->workspaces.end() && it->second) {
if (std::find(it->second->urgentWindows.begin(),
it->second->urgentWindows.end(), windowAddress) ==
it->second->urgentWindows.end()) {
it->second->urgentWindows.push_back(windowAddress);
WorkspaceState *ws = it->second;
auto uit = std::find(ws->urgentWindows.begin(), ws->urgentWindows.end(), windowAddress);
if (uit == ws->urgentWindows.end()) {
ws->urgentWindows.push_back(windowAddress);
workspaceStateChanged.emit();
}
}