mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 10:25:59 +01:00
prevent moving to invalid workspaces
This commit is contained in:
parent
5a138bed6b
commit
b89a07596e
1 changed files with 5 additions and 0 deletions
|
@ -888,6 +888,11 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
|
|||
std::string workspaceName;
|
||||
const auto WORKSPACEID = getWorkspaceIDFromString(args, workspaceName);
|
||||
|
||||
if (WORKSPACEID == INT_MAX) {
|
||||
Debug::log(LOG, "Invalid workspace in moveActiveToWorkspace");
|
||||
return;
|
||||
}
|
||||
|
||||
if (WORKSPACEID == PWINDOW->m_iWorkspaceID) {
|
||||
Debug::log(LOG, "Not moving to workspace because it didn't change.");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue