From: Rafael Antognolli Date: Mon, 4 Nov 2013 19:42:55 +0000 (-0200) Subject: Update the usage of ecore_wayland. X-Git-Tag: submit/tizen_common/20140523.092456~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c29fe03cd330a6e434973943c2d0f10e119e4798;p=platform%2Fupstream%2Fweekeyboard.git Update the usage of ecore_wayland. Ecore_Wl_Window is not exposed anymore, so the input region must be changed using the ecore_wl_window_input_region_set() function. Signed-off-by: Rafael Antognolli --- diff --git a/src/wkb-main.c b/src/wkb-main.c index 1030631..c142bd1 100644 --- a/src/wkb-main.c +++ b/src/wkb-main.c @@ -437,12 +437,9 @@ _wkb_ui_setup(struct weekeyboard *wkb) if (wkb->win) { int x, y, w, h; - struct wl_region *input = wl_compositor_create_region(wkb->win->display->wl.compositor); edje_object_part_geometry_get(wkb->edje_obj, "background", &x, &y, &w, &h); - wl_region_add(input, x, y, w, h); - wl_surface_set_input_region(wkb->surface, input); - wl_region_destroy(input); + ecore_wl_window_input_region_set(wkb->win, x, y, w, h); } /* special keys */