mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-11 23:49:49 +01:00
Fixed weird size issue of 1st foot slave when set floating
This commit is contained in:
parent
60f069d540
commit
66f999b660
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ void IHyprLayout::onWindowCreated(PHLWINDOW pWindow, eDirection direction) {
|
||||||
CBox desiredGeometry = {};
|
CBox desiredGeometry = {};
|
||||||
g_pXWaylandManager->getGeometryForWindow(pWindow, &desiredGeometry);
|
g_pXWaylandManager->getGeometryForWindow(pWindow, &desiredGeometry);
|
||||||
|
|
||||||
if (desiredGeometry.width <= 5 || desiredGeometry.height <= 5) {
|
if (desiredGeometry.width <= 14 || desiredGeometry.height <= 14) {
|
||||||
const auto PMONITOR = pWindow->m_pMonitor.lock();
|
const auto PMONITOR = pWindow->m_pMonitor.lock();
|
||||||
pWindow->m_vLastFloatingSize = PMONITOR->vecSize / 2.f;
|
pWindow->m_vLastFloatingSize = PMONITOR->vecSize / 2.f;
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue