mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 22:25:58 +01:00
check for same workspace in workspace rule
This commit is contained in:
parent
eb3c132fc5
commit
624303bfb9
1 changed files with 3 additions and 0 deletions
|
@ -147,6 +147,9 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
requestedWorkspace = WORKSPACERQ;
|
requestedWorkspace = WORKSPACERQ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (requestedWorkspace == PWORKSPACE->m_szName || requestedWorkspace == "name:" + PWORKSPACE->m_szName)
|
||||||
|
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());
|
||||||
} else if (r.szRule.find("float") == 0) {
|
} else if (r.szRule.find("float") == 0) {
|
||||||
PWINDOW->m_bIsFloating = true;
|
PWINDOW->m_bIsFloating = true;
|
||||||
|
|
Loading…
Reference in a new issue