internal: Use vecnotinrect instead of !vecinrect (#10262)
* monitor: use vecnotinrect * inputmanager: vecnotinrect * clang format
This commit is contained in:
parent
cdf5736f1a
commit
3465efcdc1
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue