diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-02 20:04:32 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-02 20:04:32 +0200 |
| commit | 3f99dad7f563593d298bcd548002e5b53a886825 (patch) | |
| tree | 4bdd69de02aff2b8a8352ff8abbb6b38d5d91c8c /src/events/Windows.cpp | |
| parent | 7add082217b1e86f36bb152aec658eb5977622fa (diff) | |
Added pseudotiling
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
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) |
