Skip to content

Commit

Permalink
xwayland: fix floating detection with unset min/max values
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickTaibel committed Nov 24, 2023
1 parent a132072 commit 05d1819
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/managers/XWaylandManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,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;
Expand Down

0 comments on commit 05d1819

Please sign in to comment.