summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-07-16 18:22:54 +0200
committerVaxry <vaxry@vaxry.net>2025-07-16 18:22:54 +0200
commit148718b3bcffaa90cd684df90860fd5bda37907f (patch)
tree16d3dc6fce19a7071025ae5f1cecfb54a21568c6 /src/events/Windows.cpp
parent5349667992f5047be0c607468e8c0d74a5e7e00c (diff)
socket2: fixup invalid ws passed to openwindow
fixes #11044
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 3636706d..17bf2750 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -418,8 +418,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
PWINDOW->m_swallowed->m_currentlySwallowed = true;
// emit the IPC event before the layout might focus the window to avoid a focus event first
- g_pEventManager->postEvent(SHyprIPCEvent{
- "openwindow", std::format("{:x},{},{},{}", PWINDOW, !requestedWorkspace.empty() ? requestedWorkspace : PWORKSPACE->m_name, PWINDOW->m_class, PWINDOW->m_title)});
+ g_pEventManager->postEvent(SHyprIPCEvent{"openwindow", std::format("{:x},{},{},{}", PWINDOW, PWORKSPACE->m_name, PWINDOW->m_class, PWINDOW->m_title)});
if (PWINDOW->m_isFloating) {
g_pLayoutManager->getCurrentLayout()->onWindowCreated(PWINDOW);