The signal will be emitted after the pointer is moved. A shell plugin
can listen to the signal and activate certain effects when the pointer
touches the screen corners, for instance.
struct weston_view *focus;
uint32_t focus_serial;
struct wl_signal focus_signal;
+ struct wl_signal motion_signal;
struct weston_view *sprite;
struct wl_listener sprite_destroy_listener;
pointer->default_grab.pointer = pointer;
pointer->grab = &pointer->default_grab;
wl_signal_init(&pointer->focus_signal);
+ wl_signal_init(&pointer->motion_signal);
pointer->sprite_destroy_listener.notify = pointer_handle_sprite_destroy;
iy - pointer->hotspot_y);
weston_view_schedule_repaint(pointer->sprite);
}
+
+ wl_signal_emit(&pointer->motion_signal, pointer);
}
WL_EXPORT void