Skip to content

Commit

Permalink
Fixes issue #403: Segmentation fault when updating destroyed mouse po…
Browse files Browse the repository at this point in the history
…inter (#404)

* Fixes issue #403: Segmentation fault when updating destroyed mouse pointer.

Signed-off-by: fredrmag <[email protected]>
  • Loading branch information
fredrmag authored Nov 28, 2023
1 parent 6b14cf0 commit c22c4ff
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,9 @@ void ELinuxWindowWayland::UpdateVirtualKeyboardStatus(const bool show) {

void ELinuxWindowWayland::UpdateFlutterCursor(const std::string& cursor_name) {
if (view_properties_.use_mouse_cursor) {
if (!wl_pointer_) {
return;
}
if (cursor_name.compare(cursor_info_.cursor_name) == 0) {
return;
}
Expand Down

0 comments on commit c22c4ff

Please sign in to comment.