diff options
author | Vaxry <[email protected]> | 2024-12-11 22:30:17 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-12-11 22:30:17 +0000 |
commit | 7c03e9d376abe5308c47772b4c17a9c345788f60 (patch) | |
tree | a9d5274e2511f233e9cc388c7a94521ff723397e | |
parent | df956a0f6fbcfd7397b2d7b86883c0936c7795ec (diff) | |
download | Hyprland-7c03e9d376abe5308c47772b4c17a9c345788f60.tar.gz Hyprland-7c03e9d376abe5308c47772b4c17a9c345788f60.zip |
core/data-device: expand damage region to fix minor px errors
fixes #7656
-rw-r--r-- | src/protocols/core/DataDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/core/DataDevice.cpp b/src/protocols/core/DataDevice.cpp index 8ad5caae..bf35f6bd 100644 --- a/src/protocols/core/DataDevice.cpp +++ b/src/protocols/core/DataDevice.cpp @@ -687,7 +687,7 @@ 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); + CBox box = CBox{POS, dnd.dndSurface->current.size}.translate(-pMonitor->vecPosition + g_pPointerManager->cursorSizeLogical() / 2.F).scale(pMonitor->scale).expand(5); g_pHyprOpenGL->renderTexture(dnd.dndSurface->current.texture, &box, 1.F); box = CBox{POS, dnd.dndSurface->current.size}.translate(g_pPointerManager->cursorSizeLogical() / 2.F); |