Skip to content

Commit c22c4ff

Browse files
authored
Fixes issue sony#403: Segmentation fault when updating destroyed mouse pointer (sony#404)
* Fixes issue sony#403: Segmentation fault when updating destroyed mouse pointer. Signed-off-by: fredrmag <[email protected]>
1 parent 6b14cf0 commit c22c4ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,9 @@ void ELinuxWindowWayland::UpdateVirtualKeyboardStatus(const bool show) {
14811481

14821482
void ELinuxWindowWayland::UpdateFlutterCursor(const std::string& cursor_name) {
14831483
if (view_properties_.use_mouse_cursor) {
1484+
if (!wl_pointer_) {
1485+
return;
1486+
}
14841487
if (cursor_name.compare(cursor_info_.cursor_name) == 0) {
14851488
return;
14861489
}

0 commit comments

Comments
 (0)