seat: fix double scrolling in some applications (#8583)

This commit is contained in:
Ikalco
2024-11-26 07:52:43 -06:00
committed by GitHub
parent 2687788236
commit 1fb720b62a
3 changed files with 9 additions and 2 deletions

View File

@@ -136,6 +136,10 @@ CWLPointerResource::CWLPointerResource(SP<CWlPointer> resource_, SP<CWLSeatResou
sendEnter(g_pSeatManager->state.pointerFocus.lock(), {-1, -1} /* Coords don't really matter that much, they will be updated next move */);
}
int CWLPointerResource::version() {
return resource->version();
}
bool CWLPointerResource::good() {
return resource->resource();
}

View File

@@ -73,6 +73,7 @@ class CWLPointerResource {
CWLPointerResource(SP<CWlPointer> resource_, SP<CWLSeatResource> owner_);
bool good();
int version();
void sendEnter(SP<CWLSurfaceResource> surface, const Vector2D& local);
void sendLeave();
void sendMotion(uint32_t timeMs, const Vector2D& local);