diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-28 15:40:06 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-28 15:40:06 +0200 |
| commit | b0ab8afc589a2575268d30048c18886cf842d13b (patch) | |
| tree | 44f54e6decd35f5890ae24459e46cd6208fb2abc /src/layout/IHyprLayout.cpp | |
| parent | 578787b36d6bc7e0f34c5fd2b7ae06d950ca0f8c (diff) | |
fix some XWayland weird popups
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |
