소스 검색

Fixed bug 4011 - Wayland: fix free cursor

Vladimir

Sometimes SDL application crashes on cursor free.

Patch tested under Centos 7 + weston
Sam Lantinga 7 년 전
부모
커밋
6bc3873729
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/video/wayland/SDL_waylandevents.c

+ 1 - 0
src/video/wayland/SDL_waylandevents.c

@@ -588,6 +588,7 @@ seat_handle_capabilities(void *data, struct wl_seat *seat,
     } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && input->pointer) {
         wl_pointer_destroy(input->pointer);
         input->pointer = NULL;
+        input->display->pointer = NULL;
     }
 
     if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {