Skip to content

Commit 905bf39

Browse files
authored
Clear cursor name when leaving window (sony#305)
Signed-off-by: Valentin Hăloiu <[email protected]>
1 parent bfb616a commit 905bf39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/flutter/shell/platform/linux_embedded/window/elinux_window_wayland.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,12 @@ const wl_pointer_listener ELinuxWindowWayland::kWlPointerListener = {
282282
self->wl_current_surface_ = surface;
283283
self->serial_ = serial;
284284

285+
if (self->view_properties_.use_mouse_cursor) {
286+
// Clear the cursor name in order to make sure it gets redrawn next time
287+
// it enters the surface.
288+
self->cursor_info_.cursor_name.clear();
289+
}
290+
285291
if (self->binding_handler_delegate_) {
286292
self->binding_handler_delegate_->OnPointerLeave();
287293
self->pointer_x_ = -1;

0 commit comments

Comments
 (0)