diff options
| author | Ikalco <73481042+ikalco@users.noreply.github.com> | 2024-11-26 07:52:43 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-26 13:52:43 +0000 |
| commit | 1fb720b62aeb474873ba43426ddc53afde1e6cdd (patch) | |
| tree | 546fac08bacc7e9521d77169e726a6ecd4d0683e /src/protocols/core | |
| parent | 268778823676ef2bbda42050d78946e1fc27fc31 (diff) | |
seat: fix double scrolling in some applications (#8583)
Diffstat (limited to 'src/protocols/core')
| -rw-r--r-- | src/protocols/core/Seat.cpp | 4 | ||||
| -rw-r--r-- | src/protocols/core/Seat.hpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/protocols/core/Seat.cpp b/src/protocols/core/Seat.cpp index d95e0e12..7c31b67c 100644 --- a/src/protocols/core/Seat.cpp +++ b/src/protocols/core/Seat.cpp @@ -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(); } diff --git a/src/protocols/core/Seat.hpp b/src/protocols/core/Seat.hpp index 1b43dd04..b5670237 100644 --- a/src/protocols/core/Seat.hpp +++ b/src/protocols/core/Seat.hpp @@ -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); |
