mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-05-22 10:38:08 +02:00
winwrap: fix for 0.54.3 (#653)
* Fixes for 54.3 * rollback changes accidentally kept from v0.54
This commit is contained in:
parent
b6e080577d
commit
22de29bc1c
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,7 @@
|
|||
using namespace Render;
|
||||
using namespace Render::GL;
|
||||
|
||||
#include <hyprland/src/layout/space/Space.hpp>
|
||||
#include "globals.hpp"
|
||||
|
||||
// Do NOT change this function
|
||||
|
|
@ -118,6 +119,9 @@ void onNewWindow(PHLWINDOW pWindow) {
|
|||
|
||||
const Vector2D newPos = {static_cast<int>(monitorPos.x + (monitorSize.x * (px / 100.f))), static_cast<int>(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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue