From 3f99dad7f563593d298bcd548002e5b53a886825 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 2 Apr 2022 20:04:32 +0200 Subject: Added pseudotiling --- src/events/Windows.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/events/Windows.cpp') diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 3d50f1f4..6d000231 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -73,6 +73,8 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->m_bIsFloating = true; } else if (r.szRule.find("tile") == 0) { PWINDOW->m_bIsFloating = false; + } else if (r.szRule.find("pseudo") == 0) { + PWINDOW->m_bIsPseudotiled = true; } } @@ -109,10 +111,19 @@ void Events::listener_mapWindow(void* owner, void* data) { } } } + + // set the pseudo size to the GOAL of our current size + // because the windows are animated on RealSize + PWINDOW->m_vPseudoSize = PWINDOW->m_vEffectiveSize; } - else + else { g_pLayoutManager->getCurrentLayout()->onWindowCreated(PWINDOW); + // Set the pseudo size here too so that it doesnt end up being 0x0 + PWINDOW->m_vPseudoSize = PWINDOW->m_vEffectiveSize - Vector2D(10,10); + } + + PWINDOW->m_szTitle = g_pXWaylandManager->getTitle(PWINDOW); if (!PWINDOW->m_bIsModal) -- cgit v1.2.3