diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-09 18:51:44 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-09 18:51:44 +0000 |
| commit | bf78dcecf092fc10df75ce869306ddabf8ecd640 (patch) | |
| tree | 452ab513b22d2420e36089aef17c53da703b02a9 /src/layout/IHyprLayout.cpp | |
| parent | d5352a5d1290bee221ef05f555405f14ee9997f5 (diff) | |
add changefloatingmode event
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index f0ca10df..3005c541 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -299,6 +299,9 @@ void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { const auto TILED = isWindowTiled(pWindow); + // event + g_pEventManager->postEvent(SHyprIPCEvent{ "changefloatingmode", getFormat("%x,%d", pWindow, (int)TILED) }); + if (!TILED) { const auto PNEWMON = g_pCompositor->getMonitorFromVector(pWindow->m_vRealPosition.vec() + pWindow->m_vRealSize.vec() / 2.f); pWindow->m_iMonitorID = PNEWMON->ID; |
