windowrules: fix persistent_size not applying (#12441)
This commit is contained in:
parent
3d7ea9c02f
commit
475e87b351
3 changed files with 33 additions and 4 deletions
|
|
@ -108,6 +108,9 @@ void IHyprLayout::onWindowCreatedFloating(PHLWINDOW pWindow) {
|
|||
xy = g_pXWaylandManager->xwaylandToWaylandCoords(xy);
|
||||
desiredGeometry.x = xy.x;
|
||||
desiredGeometry.y = xy.y;
|
||||
} else if (pWindow->m_ruleApplicator->persistentSize().valueOrDefault()) {
|
||||
desiredGeometry.w = pWindow->m_lastFloatingSize.x;
|
||||
desiredGeometry.h = pWindow->m_lastFloatingSize.y;
|
||||
}
|
||||
|
||||
static auto PXWLFORCESCALEZERO = CConfigValue<Hyprlang::INT>("xwayland:force_zero_scaling");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue