diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-11 14:13:15 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-11 14:13:15 +0200 |
| commit | 2936368e8070fc53dd4095a786be4d92d20c4158 (patch) | |
| tree | eda9785297ecd2d26993b6698f8f769cb9a95c37 /src | |
| parent | 5eaf93697ad2ee1c594373f68d76f7620eb46712 (diff) | |
minor event fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compositor.cpp | 1 | ||||
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 2 | ||||
| -rw-r--r-- | src/managers/XWaylandManager.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
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 |
