Added window rules

This commit is contained in:
vaxerski
2022-03-24 18:22:01 +01:00
parent 8cec07c39d
commit ccbc0e4a2e
8 changed files with 178 additions and 11 deletions

View File

@@ -357,8 +357,13 @@ void CHyprDwindleLayout::onWindowCreatedFloating(CWindow* pWindow) {
}
}
pWindow->m_vRealPosition = pWindow->m_vEffectivePosition + pWindow->m_vEffectiveSize / 2.f;
pWindow->m_vRealSize = Vector2D(5,5);
if (!pWindow->m_bX11DoesntWantBorders) {
pWindow->m_vRealPosition = pWindow->m_vEffectivePosition + pWindow->m_vEffectiveSize / 2.f;
pWindow->m_vRealSize = Vector2D(5, 5);
} else {
pWindow->m_vRealPosition = pWindow->m_vEffectivePosition;
pWindow->m_vRealSize = pWindow->m_vEffectiveSize;
}
g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize);
g_pCompositor->fixXWaylandWindowsOnWorkspace(PMONITOR->activeWorkspace);