shsurf->state.maximized)
return;
- surface_move(shsurf, (struct weston_seat *) seat, 0);
+ surface_move(shsurf, seat, 0);
}
static void
shsurf->state.maximized)
return;
- surface_touch_move(shsurf, (struct weston_seat *) seat);
+ surface_touch_move(shsurf, seat);
}
static void
else
edges |= WL_SHELL_SURFACE_RESIZE_BOTTOM;
- surface_resize(shsurf, (struct weston_seat *) seat, edges);
+ surface_resize(shsurf, seat, edges);
}
static void
do_zoom(struct weston_seat *seat, uint32_t time, uint32_t key, uint32_t axis,
wl_fixed_t value)
{
- struct weston_seat *ws = (struct weston_seat *) seat;
- struct weston_compositor *compositor = ws->compositor;
+ struct weston_compositor *compositor = seat->compositor;
struct weston_output *output;
float increment;
if (switcher->current)
activate(switcher->shell, switcher->current,
- (struct weston_seat *) keyboard->seat, true);
+ keyboard->seat, true);
wl_list_remove(&switcher->listener.link);
weston_keyboard_end_grab(keyboard);
if (keyboard->input_method_resource)
uint32_t mods_locked, uint32_t group)
{
struct switcher *switcher = container_of(grab, struct switcher, grab);
- struct weston_seat *seat = (struct weston_seat *) grab->keyboard->seat;
+ struct weston_seat *seat = grab->keyboard->seat;
if ((seat->modifier_state & switcher->shell->binding_modifier) == 0)
switcher_destroy(switcher);
if (!grab)
return;
- grab->seat = (struct weston_seat *) seat;
+ grab->seat = seat;
grab->key[0] = key;
grab->grab.interface = &debug_binding_keyboard_grab;
weston_keyboard_start_grab(seat->keyboard, &grab->grab);