static void
move_binding(struct weston_seat *seat, uint32_t time, uint32_t button, void *data)
{
- struct weston_surface *focus =
- (struct weston_surface *) seat->pointer->focus;
+ struct weston_surface *focus = seat->pointer->focus->surface;
struct weston_surface *surface;
struct shell_surface *shsurf;
static void
touch_move_binding(struct weston_seat *seat, uint32_t time, void *data)
{
- struct weston_surface *focus =
- (struct weston_surface *) seat->touch->focus;
+ struct weston_surface *focus = seat->touch->focus->surface;
struct weston_surface *surface;
struct shell_surface *shsurf;
static void
resize_binding(struct weston_seat *seat, uint32_t time, uint32_t button, void *data)
{
- struct weston_surface *focus =
- (struct weston_surface *) seat->pointer->focus;
+ struct weston_surface *focus = seat->pointer->focus->surface;
struct weston_surface *surface;
uint32_t edges = 0;
int32_t x, y;
{
float step = 0.005;
struct shell_surface *shsurf;
- struct weston_surface *focus =
- (struct weston_surface *) seat->pointer->focus;
+ struct weston_surface *focus = seat->pointer->focus->surface;
struct weston_surface *surface;
/* XXX: broken for windows containing sub-surfaces */
rotate_binding(struct weston_seat *seat, uint32_t time, uint32_t button,
void *data)
{
- struct weston_surface *focus =
- (struct weston_surface *) seat->pointer->focus;
+ struct weston_surface *focus = seat->pointer->focus->surface;
struct weston_surface *base_surface;
struct shell_surface *surface;
if (seat->pointer->grab != &seat->pointer->default_grab)
return;
- activate_binding(seat, data,
- (struct weston_surface *) seat->pointer->focus);
+ activate_binding(seat, data, seat->pointer->focus->surface);
}
static void
if (seat->touch->grab != &seat->touch->default_grab)
return;
- activate_binding(seat, data,
- (struct weston_surface *) seat->touch->focus);
+ activate_binding(seat, data, seat->touch->focus->surface);
}
static void