ew = ecore_wl2_display_window_find(wl2_display, e->window);
window = Tizen_FindWindow(_this, ew);
+ if (!window)
+ {
+ SDL_Log("SDL_Window is null");
+ return ECORE_CALLBACK_PASS_ON;
+ }
int x = 0, y = 0;
_tizen_get_mouseXY(window, (int)e->x, (int)e->y, &x, &y);
ew = ecore_wl2_display_window_find(wl2_display, e->window);
window = Tizen_FindWindow(_this, ew);
-
+ if (!window)
+ {
+ SDL_Log("SDL_Window is null");
+ return ECORE_CALLBACK_PASS_ON;
+ }
SDL_VideoData* videoData = SDL_GetVideoDevice()->driverdata;
SDL_WindowData *wind = window->driverdata;
ew = ecore_wl2_display_window_find(wl2_display, e->window);
window = Tizen_FindWindow(_this, ew);
-
+ if (!window)
+ {
+ SDL_Log("SDL_Window is null");
+ return ECORE_CALLBACK_PASS_ON;
+ }
int x = 0, y = 0;
_tizen_get_mouseXY(window, (int)e->x, (int)e->y, &x, &y);
SDL_SendMouseMotion(window, 0, 0, x, y);
ev = event;
ew = ecore_wl2_display_window_find(wl2_display, ev->window);
window = Tizen_FindWindow(_this, ew);
-
+ if (!window)
+ {
+ SDL_Log("SDL_Window is null");
+ return ECORE_CALLBACK_PASS_ON;
+ }
SDL_SetMouseFocus(window);
return ECORE_CALLBACK_PASS_ON;
}