mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 05:09:49 +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) {
|
||||
// move the window
|
||||
const auto OLDWORKSPACE = PWINDOW->m_iWorkspaceID;
|
||||
|
||||
if (g_pCompositor->m_pLastWindow == PWINDOW) {
|
||||
if (requestedWorkspace != "special")
|
||||
g_pKeybindManager->m_mDispatchers["movetoworkspacesilent"](requestedWorkspace);
|
||||
|
@ -328,6 +330,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
|||
} else {
|
||||
Debug::log(ERR, "Tried to set workspace silent rule to a nofocus window!");
|
||||
}
|
||||
|
||||
g_pCompositor->forceReportSizesToWindowsOnWorkspace(OLDWORKSPACE);
|
||||
}
|
||||
|
||||
if (requestsFullscreen) {
|
||||
|
|
Loading…
Reference in a new issue