diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 13:37:07 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 13:37:07 +0100 |
| commit | 332fa8a802dd89f16848765cab8a1483e09e73aa (patch) | |
| tree | 27a4a8dc9ce7d32b56b7b16b613e40d9197a0671 /src/managers/KeybindManager.cpp | |
| parent | 5d0919fcff3ee3e321b1a0b2f1e4a7c6db97f9a8 (diff) | |
XWayland floating
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 96bf65fa..8edad6ad 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -78,6 +78,10 @@ void CKeybindManager::toggleActiveFloating(std::string args) { if (g_pCompositor->windowValidMapped(ACTIVEWINDOW)) { ACTIVEWINDOW->m_bIsFloating = !ACTIVEWINDOW->m_bIsFloating; + + ACTIVEWINDOW->m_vRealPosition = ACTIVEWINDOW->m_vRealPosition + Vector2D(5, 5); + ACTIVEWINDOW->m_vSize = ACTIVEWINDOW->m_vRealPosition - Vector2D(10, 10); + g_pLayoutManager->getCurrentLayout()->changeWindowFloatingMode(ACTIVEWINDOW); } }
\ No newline at end of file |
