From 5327565b33f96d8d7aa2762f0d09a6ac47f00333 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 22 Nov 2022 17:20:58 +0000 Subject: remove resize transitions --- src/render/OpenGL.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/render/OpenGL.cpp') 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) { -- cgit v1.2.3