summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorKamikadze <40305144+Kam1k4dze@users.noreply.github.com>2025-05-31 23:49:50 +0500
committerGitHub <noreply@github.com>2025-05-31 19:49:50 +0100
commit69c2b2926e128f1fd09080aed43944987a42026f (patch)
treec92596715498f30ae33767d3c93268d4f01aec6f /src/events/Windows.cpp
parent4078e1d17c0fb1439ee5a0ba1e539f06a8f47aab (diff)
internal: refactor to use empty() (#10599)
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index b019adff..da1e5263 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -418,8 +418,8 @@ 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 != "" ? requestedWorkspace : PWORKSPACE->m_name, PWINDOW->m_class, PWINDOW->m_title)});
+ g_pEventManager->postEvent(SHyprIPCEvent{
+ "openwindow", std::format("{:x},{},{},{}", PWINDOW, !requestedWorkspace.empty() ? requestedWorkspace : PWORKSPACE->m_name, PWINDOW->m_class, PWINDOW->m_title)});
if (PWINDOW->m_isFloating) {
g_pLayoutManager->getCurrentLayout()->onWindowCreated(PWINDOW);