summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@intel.com>2013-11-04 17:42:55 -0200
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2013-11-04 18:14:19 -0200
commitc29fe03cd330a6e434973943c2d0f10e119e4798 (patch)
treed8cbec5fc004dbad295463f4c0d33757ac825e72
parent2b90afeb7ea80ee96934130e018422cdefc26c58 (diff)
downloadweekeyboard-c29fe03cd330a6e434973943c2d0f10e119e4798.tar.gz
weekeyboard-c29fe03cd330a6e434973943c2d0f10e119e4798.tar.bz2
weekeyboard-c29fe03cd330a6e434973943c2d0f10e119e4798.zip
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 <rafael.antognolli@intel.com>
-rw-r--r--src/wkb-main.c5
1 files changed, 1 insertions, 4 deletions
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 */