mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-14 04:05:58 +01:00
allow nofocus + workspace silent
This commit is contained in:
parent
077c1491a8
commit
cf869d9636
1 changed files with 7 additions and 6 deletions
|
@ -375,13 +375,14 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
// move the window
|
// move the window
|
||||||
const auto OLDWORKSPACE = PWINDOW->m_iWorkspaceID;
|
const auto OLDWORKSPACE = PWINDOW->m_iWorkspaceID;
|
||||||
|
|
||||||
if (g_pCompositor->m_pLastWindow == PWINDOW) {
|
std::stringstream stream;
|
||||||
if (requestedWorkspace != "special")
|
stream << std::hex << (uintptr_t)PWINDOW;
|
||||||
g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace);
|
std::string hexStr(stream.str());
|
||||||
else
|
|
||||||
g_pKeybindManager->m_mDispatchers["movetoworkspace"]("special");
|
if (requestedWorkspace != "special") {
|
||||||
|
g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace + ",address:0x" + hexStr);
|
||||||
} else {
|
} else {
|
||||||
Debug::log(ERR, "Tried to set workspace silent rule to a nofocus window!");
|
g_pKeybindManager->m_mDispatchers["movetoworkspace"]("special,address:0x" + hexStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_pCompositor->forceReportSizesToWindowsOnWorkspace(OLDWORKSPACE);
|
g_pCompositor->forceReportSizesToWindowsOnWorkspace(OLDWORKSPACE);
|
||||||
|
|
Loading…
Reference in a new issue