mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 18:25:59 +01:00
ignore silent workspace rules to same workspace
This commit is contained in:
parent
121ea1fac2
commit
198b7cae12
1 changed files with 3 additions and 1 deletions
|
@ -146,7 +146,9 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
requestedWorkspace = WORKSPACERQ;
|
requestedWorkspace = WORKSPACERQ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (requestedWorkspace == PWORKSPACE->m_szName || requestedWorkspace == "name:" + PWORKSPACE->m_szName)
|
const auto JUSTWORKSPACE = WORKSPACERQ.contains(' ') ? WORKSPACERQ.substr(0, WORKSPACERQ.find_first_of(' ')) : WORKSPACERQ;
|
||||||
|
|
||||||
|
if (JUSTWORKSPACE == PWORKSPACE->m_szName || JUSTWORKSPACE == "name:" + PWORKSPACE->m_szName)
|
||||||
requestedWorkspace = "";
|
requestedWorkspace = "";
|
||||||
|
|
||||||
Debug::log(LOG, "Rule workspace matched by window %x, %s applied.", PWINDOW, r.szValue.c_str());
|
Debug::log(LOG, "Rule workspace matched by window %x, %s applied.", PWINDOW, r.szValue.c_str());
|
||||||
|
|
Loading…
Reference in a new issue