From 22de29bc1cf4126202df52691d0bc9a065089cba Mon Sep 17 00:00:00 2001 From: Kamil Dziedzic Date: Fri, 8 May 2026 17:34:15 +0200 Subject: [PATCH] winwrap: fix for 0.54.3 (#653) * Fixes for 54.3 * rollback changes accidentally kept from v0.54 --- hyprwinwrap/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyprwinwrap/main.cpp b/hyprwinwrap/main.cpp index afb475d..c72d0ee 100644 --- a/hyprwinwrap/main.cpp +++ b/hyprwinwrap/main.cpp @@ -25,6 +25,7 @@ using namespace Render; using namespace Render::GL; +#include #include "globals.hpp" // Do NOT change this function @@ -118,6 +119,9 @@ void onNewWindow(PHLWINDOW pWindow) { const Vector2D newPos = {static_cast(monitorPos.x + (monitorSize.x * (px / 100.f))), static_cast(monitorPos.y + (monitorSize.y * (py / 100.f)))}; + const CBox b(newPos.x, newPos.y, newSize.x, newSize.y); + + pWindow->layoutTarget()->space()->setTargetGeom(b, pWindow->layoutTarget()); pWindow->m_realSize->setValueAndWarp(newSize); pWindow->m_realPosition->setValueAndWarp(newPos); pWindow->m_size = newSize;