Skip to content

Commit c6c820d

Browse files
committed
layout: always center floating xdg windows
1 parent e6ca4b6 commit c6c820d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layout/IHyprLayout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) {
141141
}
142142

143143
// TODO: detect a popup in a more consistent way.
144-
if ((desiredGeometry.x == 0 && desiredGeometry.y == 0) || !visible) {
144+
if ((desiredGeometry.x == 0 && desiredGeometry.y == 0) || !visible || !pWindow->m_bIsX11) {
145145
// if it's not, fall back to the center placement
146146
pWindow->m_vRealPosition = PMONITOR->vecPosition + Vector2D((PMONITOR->vecSize.x - desiredGeometry.width) / 2.f, (PMONITOR->vecSize.y - desiredGeometry.height) / 2.f);
147147
} else {

0 commit comments

Comments
 (0)