diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 63ef22b6..076c8095 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -614,6 +614,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 return; } diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 7f94cd82..459e4c24 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -522,6 +522,8 @@ void CHyprDwindleLayout::fullscreenRequestForWindow(CWindow* pWindow, eFullscree pWindow->m_bIsFullscreen = on; PWORKSPACE->m_bHasFullscreenWindow = !PWORKSPACE->m_bHasFullscreenWindow; + g_pEventManager->postEvent(SHyprIPCEvent("fullscreen", std::to_string((int)on))); + if (!pWindow->m_bIsFullscreen) { // if it got its fullscreen disabled, set back its node if it had one const auto PNODE = getNodeFromWindow(pWindow); diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 855cbc2c..6ba2fa34 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -223,6 +223,4 @@ void CHyprXWaylandManager::setWindowFullscreen(CWindow* pWindow, bool fullscreen if (pWindow->m_phForeignToplevel) wlr_foreign_toplevel_handle_v1_set_fullscreen(pWindow->m_phForeignToplevel, fullscreen); - - g_pEventManager->postEvent(SHyprIPCEvent("fullscreen", std::to_string((int)fullscreen))); } \ No newline at end of file