diff options
author | Jaeyoon Jung <jaeyoon.jung@lge.com> | 2021-04-12 14:37:02 +0900 |
---|---|---|
committer | Jaeyoon Jung <jaeyoon.jung@lge.com> | 2021-05-12 15:01:08 +0900 |
commit | 87cbec8d4a71015219360a7f9a3ccf2a64af8d68 (patch) | |
tree | 1a0612e06583fe6922460486fc02a6322f6c2391 | |
parent | 6300eba9e5537faf7e858cfaa4cba3b288635347 (diff) | |
download | qtwayland-87cbec8d4a71015219360a7f9a3ccf2a64af8d68.tar.gz |
Do not set null cursor surface on pointer leave
Hiding the cursor when a pointer has lost its focus is not the common
behavior that applies to all compositor use cases. It is also impossible
to distinguish if the client actually requested it or not.
Change-Id: Iaa67021ac142abb64a3c71e6d4536e5a5c8a04b5
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r-- | src/compositor/compositor_api/qwaylandpointer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compositor/compositor_api/qwaylandpointer.cpp b/src/compositor/compositor_api/qwaylandpointer.cpp index 302e7cdd..a7b57853 100644 --- a/src/compositor/compositor_api/qwaylandpointer.cpp +++ b/src/compositor/compositor_api/qwaylandpointer.cpp @@ -92,7 +92,6 @@ void QWaylandPointerPrivate::sendLeave() send_leave(resource->handle, serial, enteredSurface->resource()); localPosition = QPointF(); enteredSurfaceDestroyListener.reset(); - seat->cursorSurfaceRequested(nullptr, 0, 0, QWaylandClient::fromWlClient(compositor(), enteredSurface->waylandClient())); enteredSurface = nullptr; } |