mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 20:21:54 -07:00
fix wonky behavior with silent workspace rule
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user