hide only XWayland on incorrect size

This commit is contained in:
vaxerski
2022-07-29 11:45:32 +02:00
parent 233bad5011
commit 429a9bc6c3
2 changed files with 1 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) {
const auto PWINDOWSURFACE = g_pXWaylandManager->getWindowSurface(pWindow);
pWindow->m_vRealSize = Vector2D(PWINDOWSURFACE->current.width, PWINDOWSURFACE->current.height);
if (desiredGeometry.width <= 1 || desiredGeometry.height <= 1) {
if ((desiredGeometry.width <= 1 || desiredGeometry.height <= 1) && pWindow->m_bIsX11) { // XDG windows should be fine. TODO: check for weird atoms?
pWindow->m_bHidden = true;
return;
}