mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 08:25:58 +01:00
fix wonky behavior with silent workspace rule
This commit is contained in:
parent
3ea89e6171
commit
41883e0522
1 changed files with 4 additions and 0 deletions
|
@ -320,6 +320,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
|
|
||||||
if (workspaceSilent) {
|
if (workspaceSilent) {
|
||||||
// move the window
|
// move the window
|
||||||
|
const auto OLDWORKSPACE = PWINDOW->m_iWorkspaceID;
|
||||||
|
|
||||||
if (g_pCompositor->m_pLastWindow == PWINDOW) {
|
if (g_pCompositor->m_pLastWindow == PWINDOW) {
|
||||||
if (requestedWorkspace != "special")
|
if (requestedWorkspace != "special")
|
||||||
g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace);
|
g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace);
|
||||||
|
@ -328,6 +330,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
} else {
|
} else {
|
||||||
Debug::log(ERR, "Tried to set workspace silent rule to a nofocus window!");
|
Debug::log(ERR, "Tried to set workspace silent rule to a nofocus window!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_pCompositor->forceReportSizesToWindowsOnWorkspace(OLDWORKSPACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (requestsFullscreen) {
|
if (requestsFullscreen) {
|
||||||
|
|
Loading…
Reference in a new issue