- Some watch application creates bigger canvas than supported size,
and it makes scrollable in the viewer-side.
- The patch makes ignore mouse event to prevent scrolling of the
watch application.
Change-Id: Iac1f282d880fe6f92ae766148fd5d0caa0ea6ed7
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
Evas_Object *ret_win;
struct wl_surface *surface;
Ecore_Wl_Window *wl_win;
+ screen_connector_provider_h remote;
if (win == NULL)
return watch_app_error(APP_ERROR_INVALID_PARAMETER,
_E("failed to get surface");
surface = ecore_wl_window_surface_get(wl_win);
- screen_connector_provider_remote_enable(watch_core_get_appid(), surface);
+ remote = screen_connector_provider_create(watch_core_get_appid(),
+ surface);
+ screen_connector_provider_set_event_filter(remote,
+ SCREEN_CONNECTOR_INPUT_TYPE_MOUSE_MOVE_X_Y |
+ SCREEN_CONNECTOR_INPUT_TYPE_TOUCH_MOVE_X_Y);
*win = ret_win;
return APP_ERROR_NONE;