}
}
+static void
+click_to_activate_binding(struct weston_seat *seat, uint32_t time, uint32_t button,
+ void *data)
+{
+ if (seat->pointer->grab != &seat->pointer->default_grab) {
+ return;
+ }
+ if (seat->pointer->focus == NULL) {
+ return;
+ }
+
+ weston_surface_activate(seat->pointer->focus->surface, seat);
+}
+
/*
* Initialization of ivi-shell.
*/
return -1;
}
+ weston_compositor_add_button_binding(compositor, BTN_LEFT, 0, click_to_activate_binding, shell);
+
free(setting.ivi_module);
/* Initialize ivi-shell-ext. wl_shell is supported here */