mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 14:11:59 -07:00
minor XWayland and rule fixes
This commit is contained in:
@@ -148,6 +148,10 @@ bool CHyprXWaylandManager::shouldBeFloated(CWindow* pWindow) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (pWindow->m_iX11Type == 2) {
|
||||
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))))
|
||||
return true;
|
||||
@@ -185,7 +189,7 @@ void CHyprXWaylandManager::checkBorders(CWindow* pWindow) {
|
||||
}
|
||||
}
|
||||
|
||||
if (pWindow->m_uSurface.xwayland->parent) {
|
||||
if (pWindow->m_uSurface.xwayland->parent || pWindow->m_iX11Type == 2) {
|
||||
pWindow->m_bX11DoesntWantBorders = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user