It's all internal to the shell plugin now.
};
struct wlsc_shell {
- void (*activate)(struct wlsc_shell *shell,
- struct wlsc_surface *es,
- struct wlsc_input_device *device, uint32_t time);
void (*lock)(struct wlsc_shell *shell);
void (*unlock)(struct wlsc_shell *shell);
void (*map)(struct wlsc_shell *shell, struct wlsc_surface *surface,
focus = (struct wlsc_surface *) device->pointer_focus;
if (state && focus && device->grab == NULL)
- compositor->shell->activate(compositor->shell,
- focus, wd, time);
+ activate(compositor->shell, focus, wd, time);
}
static void
memset(shell, 0, sizeof *shell);
shell->compositor = ec;
- shell->shell.activate = activate;
shell->shell.lock = lock;
shell->shell.unlock = unlock;
shell->shell.map = map;
}
static void
-tablet_shell_activate(struct wlsc_shell *base, struct wlsc_surface *es,
- struct wlsc_input_device *device, uint32_t time)
-{
- wlsc_surface_activate(es, device, time);
-}
-
-static void
tablet_shell_lock(struct wlsc_shell *base)
{
struct tablet_shell *shell =
compositor->shell = &shell->shell;
- shell->shell.activate = tablet_shell_activate;
shell->shell.lock = tablet_shell_lock;
shell->shell.unlock = tablet_shell_unlock;
shell->shell.map = tablet_shell_map;