fix some XWayland weird popups

This commit is contained in:
vaxerski
2022-07-28 15:40:06 +02:00
parent 578787b36d
commit b0ab8afc58
2 changed files with 15 additions and 0 deletions

View File

@@ -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) {