Merge pull request #3407 from khaneliman/rewrite-ignore
modules/hyprland/workspace: ignore empty window-rewrite
This commit is contained in:
commit
6f994c849d
|
@ -26,6 +26,7 @@ Addressed by *hyprland/workspaces*
|
||||||
Regex rules to map window class to an icon or preferred method of representation for a workspace's window.
|
Regex rules to map window class to an icon or preferred method of representation for a workspace's window.
|
||||||
Keys are the rules, while the values are the methods of representation. Values may use the placeholders {class} and {title} to use the window's original class and/or title respectively.
|
Keys are the rules, while the values are the methods of representation. Values may use the placeholders {class} and {title} to use the window's original class and/or title respectively.
|
||||||
Rules may specify `class<...>`, `title<...>`, or both in order to fine-tune the matching.
|
Rules may specify `class<...>`, `title<...>`, or both in order to fine-tune the matching.
|
||||||
|
You may assign an empty value to a rule to have it ignored from generating any representation in workspaces.
|
||||||
|
|
||||||
*window-rewrite-default*:
|
*window-rewrite-default*:
|
||||||
typeof: string ++
|
typeof: string ++
|
||||||
|
|
|
@ -92,7 +92,11 @@ void Workspace::initializeWindowMap(const Json::Value &clients_data) {
|
||||||
|
|
||||||
void Workspace::insertWindow(WindowCreationPayload create_window_paylod) {
|
void Workspace::insertWindow(WindowCreationPayload create_window_paylod) {
|
||||||
if (!create_window_paylod.isEmpty(m_workspaceManager)) {
|
if (!create_window_paylod.isEmpty(m_workspaceManager)) {
|
||||||
m_windowMap[create_window_paylod.getAddress()] = create_window_paylod.repr(m_workspaceManager);
|
auto repr = create_window_paylod.repr(m_workspaceManager);
|
||||||
|
|
||||||
|
if (!repr.empty()) {
|
||||||
|
m_windowMap[create_window_paylod.getAddress()] = repr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue