From b0ab8afc589a2575268d30048c18886cf842d13b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 28 Jul 2022 15:40:06 +0200 Subject: fix some XWayland weird popups --- src/layout/IHyprLayout.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/layout/IHyprLayout.cpp') diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 0032c7fc..d9dc50c0 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -35,6 +35,11 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) { if (desiredGeometry.width <= 5 || desiredGeometry.height <= 5) { const auto PWINDOWSURFACE = g_pXWaylandManager->getWindowSurface(pWindow); pWindow->m_vRealSize = Vector2D(PWINDOWSURFACE->current.width, PWINDOWSURFACE->current.height); + + if (desiredGeometry.width <= 1 || desiredGeometry.height <= 1) { + pWindow->m_bHidden = true; + return; + } // reject any windows with size <= 5x5 if (pWindow->m_vRealSize.goalv().x <= 5 || pWindow->m_vRealSize.goalv().y <= 5) { -- cgit v1.2.3