summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-20 18:39:08 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-20 18:39:08 +0200
commit641aaff998d6297831b9b139e5ff8767ab5c0c79 (patch)
treed4ff1adab991d4d6834ad24b53c7f455ab966796 /src/Compositor.cpp
parent9463e3eb0a3ee0d46ae156144346df38c170c94b (diff)
minor code adjustments
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index f941625d..99a46dfa 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -646,7 +646,7 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) {
updateWindowAnimatedDecorationValues(pWindow);
// Send an event
- g_pEventManager->postEvent(SHyprIPCEvent("activewindow", g_pXWaylandManager->getAppIDClass(pWindow) + "," + pWindow->m_szTitle));
+ g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", g_pXWaylandManager->getAppIDClass(pWindow) + "," + pWindow->m_szTitle});
if (pWindow->m_phForeignToplevel)
wlr_foreign_toplevel_handle_v1_set_activated(pWindow->m_phForeignToplevel, true);
@@ -663,7 +663,7 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) {
if (!pSurface) {
wlr_seat_keyboard_clear_focus(m_sSeat.seat);
- g_pEventManager->postEvent(SHyprIPCEvent("activewindow", ",")); // unfocused
+ g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","}); // unfocused
return;
}