mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 06:01:56 -07:00
prevent moving to invalid workspaces
This commit is contained in:
@@ -888,6 +888,11 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
|
|||||||
std::string workspaceName;
|
std::string workspaceName;
|
||||||
const auto WORKSPACEID = getWorkspaceIDFromString(args, workspaceName);
|
const auto WORKSPACEID = getWorkspaceIDFromString(args, workspaceName);
|
||||||
|
|
||||||
|
if (WORKSPACEID == INT_MAX) {
|
||||||
|
Debug::log(LOG, "Invalid workspace in moveActiveToWorkspace");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (WORKSPACEID == PWINDOW->m_iWorkspaceID) {
|
if (WORKSPACEID == PWINDOW->m_iWorkspaceID) {
|
||||||
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;
|
||||||
|
Reference in New Issue
Block a user