From 8f3fe6f87313c340f9a944ff7836a3da25b260a3 Mon Sep 17 00:00:00 2001 From: Patrick Taibel Date: Sun, 3 Sep 2023 10:58:34 +0200 Subject: [PATCH] xwayland: fix floating detection with unset min/max values --- src/managers/XWaylandManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 8ff2243d0c5..64e6e913795 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -231,7 +231,9 @@ bool CHyprXWaylandManager::shouldBeFloated(CWindow* pWindow) { return true; // override_redirect const auto SIZEHINTS = pWindow->m_uSurface.xwayland->size_hints; - if (SIZEHINTS && (pWindow->m_uSurface.xwayland->parent || ((SIZEHINTS->min_width == SIZEHINTS->max_width) && (SIZEHINTS->min_height == SIZEHINTS->max_height)))) + if (SIZEHINTS && + (pWindow->m_uSurface.xwayland->parent || + (SIZEHINTS->min_width > 0 && SIZEHINTS->min_height > 0 && SIZEHINTS->min_width == SIZEHINTS->max_width && SIZEHINTS->min_height == SIZEHINTS->max_height))) return true; } else { const auto PSTATE = &pWindow->m_uSurface.xdg->toplevel->current;