aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorAlexander <[email protected]>2024-06-23 00:52:42 +0300
committerGitHub <[email protected]>2024-06-22 23:52:42 +0200
commit7f09646ab8b5b6d9f835681d0af5d7a0dc29d8f1 (patch)
tree269ecbddad6cafe84c56c167e767617fcf324ee1 /src/events/Windows.cpp
parent0b924f541c744f96d32c9a0d98dcfd90205bab4c (diff)
downloadHyprland-7f09646ab8b5b6d9f835681d0af5d7a0dc29d8f1.tar.gz
Hyprland-7f09646ab8b5b6d9f835681d0af5d7a0dc29d8f1.zip
core: add ability to select previous workspace per monitor (#6598)
Co-authored-by: Крылов Александр <[email protected]>
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index d37ba12b..bb1197e5 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -293,8 +293,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
if (WORKSPACEARGS[WORKSPACEARGS.size() - 1].starts_with("silent"))
workspaceSilent = true;
- std::string requestedWorkspaceName;
- const int REQUESTEDWORKSPACEID = getWorkspaceIDFromString(WORKSPACEARGS.join(" ", 0, workspaceSilent ? WORKSPACEARGS.size() - 1 : 0), requestedWorkspaceName);
+ const auto& [REQUESTEDWORKSPACEID, requestedWorkspaceName] = getWorkspaceIDNameFromString(WORKSPACEARGS.join(" ", 0, workspaceSilent ? WORKSPACEARGS.size() - 1 : 0));
if (REQUESTEDWORKSPACEID != WORKSPACE_INVALID) {
auto pWorkspace = g_pCompositor->getWorkspaceByID(REQUESTEDWORKSPACEID);