mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 05:49:48 +01:00
fix moveactivetoworkspace
This commit is contained in:
parent
b1c11f3d2e
commit
1e096f6fcd
1 changed files with 9 additions and 1 deletions
|
@ -318,15 +318,23 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
|
||||||
const auto OLDWORKSPACE = g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID);
|
const auto OLDWORKSPACE = g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID);
|
||||||
|
|
||||||
// hack
|
// hack
|
||||||
|
std::string unusedName;
|
||||||
|
const auto WORKSPACEID = getWorkspaceIDFromString(args, unusedName);
|
||||||
|
|
||||||
g_pKeybindManager->changeworkspace(args);
|
g_pKeybindManager->changeworkspace(args);
|
||||||
|
|
||||||
const auto PWORKSPACE = g_pCompositor->getWorkspaceByString(args);
|
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(WORKSPACEID);
|
||||||
|
|
||||||
if (PWORKSPACE == OLDWORKSPACE) {
|
if (PWORKSPACE == OLDWORKSPACE) {
|
||||||
Debug::log(LOG, "Not moving to workspace because it didn't change.");
|
Debug::log(LOG, "Not moving to workspace because it didn't change.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!PWORKSPACE) {
|
||||||
|
Debug::log(ERR, "Workspace null in moveActiveToWorkspace?");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
OLDWORKSPACE->m_bHasFullscreenWindow = false;
|
OLDWORKSPACE->m_bHasFullscreenWindow = false;
|
||||||
|
|
||||||
PWINDOW->m_iWorkspaceID = PWORKSPACE->m_iID;
|
PWINDOW->m_iWorkspaceID = PWORKSPACE->m_iID;
|
||||||
|
|
Loading…
Reference in a new issue