'state' here meaning 'is it up or down?', obviously.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
static void
button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct clickdot *clickdot = data;
static void
panel_launcher_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct panel_launcher *launcher;
static void
panel_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct panel *panel = data;
static void
unlock_dialog_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct unlock_dialog *dialog = data;
struct desktop *desktop = dialog->desktop;
static void
dnd_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct dnd *dnd = data;
int32_t x, y;
*/
static void
button_handler(struct widget *widget, struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
int32_t x, y;
static void
button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct flower *flower = data;
static void
button_handler(struct widget *widget, struct input *input,
- uint32_t time, int button, int state, void *data)
+ uint32_t time, int button, uint32_t state, void *data)
{
struct gears *gears = data;
static void
button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct resizor *resizor = data;
static void
lockscreen_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct lockscreen *lockscreen = data;
static void
button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct terminal *terminal = data;
static void
button_handler(struct widget *widget, struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct view *view = data;
static void
frame_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct frame *frame = data;
static void
menu_button_handler(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data)
+ int button, uint32_t state, void *data)
{
struct menu *menu = data;
int32_t x, int32_t y, void *data);
typedef void (*widget_button_handler_t)(struct widget *widget,
struct input *input, uint32_t time,
- int button, int state, void *data);
+ int button, uint32_t state,
+ void *data);
struct window *
window_create(struct display *display);
WL_EXPORT void
notify_button(struct wl_input_device *device,
- uint32_t time, int32_t button, int32_t state)
+ uint32_t time, int32_t button, uint32_t state)
{
struct weston_input_device *wd = (struct weston_input_device *) device;
struct weston_compositor *compositor = wd->compositor;
uint32_t time, int x, int y);
void
notify_button(struct wl_input_device *device,
- uint32_t time, int32_t button, int32_t state);
+ uint32_t time, int32_t button, uint32_t state);
void
notify_axis(struct wl_input_device *device,
uint32_t time, uint32_t axis, int32_t value);
static void
move_grab_button(struct wl_pointer_grab *grab,
- uint32_t time, uint32_t button, int32_t state)
+ uint32_t time, uint32_t button, uint32_t state)
{
struct shell_grab *shell_grab = container_of(grab, struct shell_grab,
grab);
static void
resize_grab_button(struct wl_pointer_grab *grab,
- uint32_t time, uint32_t button, int32_t state)
+ uint32_t time, uint32_t button, uint32_t state)
{
struct weston_resize_grab *resize = (struct weston_resize_grab *) grab;
struct wl_input_device *device = grab->input_device;
static void
popup_grab_button(struct wl_pointer_grab *grab,
- uint32_t time, uint32_t button, int32_t state)
+ uint32_t time, uint32_t button, uint32_t state)
{
struct wl_resource *resource;
struct shell_surface *shsurf =
static void
rotate_grab_button(struct wl_pointer_grab *grab,
- uint32_t time, uint32_t button, int32_t state)
+ uint32_t time, uint32_t button, uint32_t state)
{
struct rotate_grab *rotate =
container_of(grab, struct rotate_grab, base.grab);
static void
switcher_key(struct wl_keyboard_grab *grab,
- uint32_t time, uint32_t key, int32_t state)
+ uint32_t time, uint32_t key, uint32_t state)
{
struct switcher *switcher = container_of(grab, struct switcher, grab);
struct weston_input_device *device =
static void
binding_key(struct wl_keyboard_grab *grab,
- uint32_t time, uint32_t key, int32_t state)
+ uint32_t time, uint32_t key, uint32_t state)
{
struct binding_keyboard_grab *b =
container_of(grab, struct binding_keyboard_grab, grab);