internal: Use vecnotinrect instead of !vecinrect (#10262)

* monitor: use vecnotinrect

* inputmanager: vecnotinrect

* clang format
This commit is contained in:
Honkazel
2025-05-03 21:54:15 +05:00
committed by GitHub
parent cdf5736f1a
commit 3465efcdc1
2 changed files with 4 additions and 4 deletions

View File

@@ -522,7 +522,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse) {
if (pFoundWindow && foundSurface == pFoundWindow->m_wlSurface->resource() && !m_cursorImageOverridden) {
const auto BOX = pFoundWindow->getWindowMainSurfaceBox();
if (!VECINRECT(mouseCoords, BOX.x, BOX.y, BOX.x + BOX.width, BOX.y + BOX.height))
if (VECNOTINRECT(mouseCoords, BOX.x, BOX.y, BOX.x + BOX.width, BOX.y + BOX.height))
setCursorImageOverride("left_ptr");
else
restoreCursorIconToApp();