diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-22 17:20:58 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-22 17:20:58 +0000 |
| commit | 5327565b33f96d8d7aa2762f0d09a6ac47f00333 (patch) | |
| tree | 769ac42a0d7c9e0a7d6634f3d0a3b3d91170fc1d /src/render/OpenGL.cpp | |
| parent | 95047fb08327c5a9c38e5daa46cc3241a1b69cbe (diff) | |
remove resize transitions
Diffstat (limited to 'src/render/OpenGL.cpp')
| -rw-r--r-- | src/render/OpenGL.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 3345db60..8010f9ca 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1072,29 +1072,11 @@ void CHyprOpenGLImpl::makeLayerSnapshot(SLayerSurface* pLayer) { } void CHyprOpenGLImpl::onWindowResizeStart(CWindow* pWindow) { - static auto *const PTRANSITIONS = &g_pConfigManager->getConfigValuePtr("animations:use_resize_transitions")->intValue; - static auto *const PENABLED = &g_pConfigManager->getConfigValuePtr("animations:enabled")->intValue; - if (!*PTRANSITIONS || !*PENABLED) - return; - - if (pWindow->m_vRealSize.vec().x < 5 || pWindow->m_vRealSize.vec().y < 5) - return; - - // make a fb and render a snapshot - const auto PFRAMEBUFFER = &m_mWindowResizeFramebuffers[pWindow]; - makeRawWindowSnapshot(pWindow, PFRAMEBUFFER); } void CHyprOpenGLImpl::onWindowResizeEnd(CWindow* pWindow) { - static auto *const PTRANSITIONS = &g_pConfigManager->getConfigValuePtr("animations:use_resize_transitions")->intValue; - static auto *const PENABLED = &g_pConfigManager->getConfigValuePtr("animations:enabled")->intValue; - - if (!*PTRANSITIONS || !*PENABLED) - return; - // remove the fb - m_mWindowResizeFramebuffers.erase(pWindow); } void CHyprOpenGLImpl::renderSnapshot(CWindow** pWindow) { |
