aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-12 12:16:59 +0000
committerVaxry <[email protected]>2024-12-12 12:16:59 +0000
commitaefaeedf5e3f773c923373795267c1633141566c (patch)
treefa69f9901d59df6865d3e162ae9c0d0c821b1f89
parentcef5e6dd7ca7008456cf63a76776550974de1612 (diff)
downloadHyprland-aefaeedf5e3f773c923373795267c1633141566c.tar.gz
Hyprland-aefaeedf5e3f773c923373795267c1633141566c.zip
data-device: fixup wrong box expansion
oopsie 7c03e9d376abe5308c47772b4c17a9c345788f60 was wrong
-rw-r--r--src/protocols/core/DataDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/core/DataDevice.cpp b/src/protocols/core/DataDevice.cpp
index bf35f6bd..f51a3249 100644
--- a/src/protocols/core/DataDevice.cpp
+++ b/src/protocols/core/DataDevice.cpp
@@ -687,10 +687,10 @@ void CWLDataDeviceProtocol::renderDND(PHLMONITOR pMonitor, timespec* when) {
const auto POS = g_pInputManager->getMouseCoordsInternal();
- CBox box = CBox{POS, dnd.dndSurface->current.size}.translate(-pMonitor->vecPosition + g_pPointerManager->cursorSizeLogical() / 2.F).scale(pMonitor->scale).expand(5);
+ CBox box = CBox{POS, dnd.dndSurface->current.size}.translate(-pMonitor->vecPosition + g_pPointerManager->cursorSizeLogical() / 2.F).scale(pMonitor->scale);
g_pHyprOpenGL->renderTexture(dnd.dndSurface->current.texture, &box, 1.F);
- box = CBox{POS, dnd.dndSurface->current.size}.translate(g_pPointerManager->cursorSizeLogical() / 2.F);
+ box = CBox{POS, dnd.dndSurface->current.size}.translate(g_pPointerManager->cursorSizeLogical() / 2.F).expand(5);
g_pHyprRenderer->damageBox(&box);
dnd.dndSurface->frame(when);