mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-14 04:25:57 +01:00
minor fix to silent ws rules
This commit is contained in:
parent
cf869d9636
commit
e0bc952c83
1 changed files with 16 additions and 7 deletions
|
@ -375,14 +375,23 @@ 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;
|
||||||
|
|
||||||
std::stringstream stream;
|
if (g_pCompositor->m_pLastWindow == PWINDOW) {
|
||||||
stream << std::hex << (uintptr_t)PWINDOW;
|
if (requestedWorkspace != "special") {
|
||||||
std::string hexStr(stream.str());
|
g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace);
|
||||||
|
} else {
|
||||||
if (requestedWorkspace != "special") {
|
g_pKeybindManager->m_mDispatchers["movetoworkspace"]("special");
|
||||||
g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace + ",address:0x" + hexStr);
|
}
|
||||||
} else {
|
} else {
|
||||||
g_pKeybindManager->m_mDispatchers["movetoworkspace"]("special,address:0x" + hexStr);
|
// yes this is fucking weird no clue why this won't work for everyone
|
||||||
|
std::stringstream stream;
|
||||||
|
stream << std::hex << (uintptr_t)PWINDOW;
|
||||||
|
std::string hexStr(stream.str());
|
||||||
|
|
||||||
|
if (requestedWorkspace != "special") {
|
||||||
|
g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace + ",address:0x" + hexStr);
|
||||||
|
} else {
|
||||||
|
g_pKeybindManager->m_mDispatchers["movetoworkspace"]("special,address:0x" + hexStr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_pCompositor->forceReportSizesToWindowsOnWorkspace(OLDWORKSPACE);
|
g_pCompositor->forceReportSizesToWindowsOnWorkspace(OLDWORKSPACE);
|
||||||
|
|
Loading…
Reference in a new issue